|
Oracle Fusion Middleware Java API Reference for Oracle WebLogic Server 12c (12.1.3) Part Number E41849-02 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.management.NotificationBroadcasterSupport
javax.management.timer.Timer
weblogic.management.timer.Timer
public final class Timer
Timer: an implementation of the JMX javax.management.TimerMBean interface that uses weblogic execute threads and honors user identity.
| Field Summary |
|---|
| Fields inherited from class javax.management.timer.Timer |
|---|
ONE_DAY, ONE_HOUR, ONE_MINUTE, ONE_SECOND, ONE_WEEK |
| Constructor Summary | |
|---|---|
Timer()
Constructor for the Timer object |
|
| Method Summary | |
|---|---|
Integer |
addNotification(String type,
String message,
Object userData,
Date date)
Adds a feature to the Notification attribute of the Timer object |
Integer |
addNotification(String type,
String message,
Object userData,
Date date,
long period)
Adds a feature to the Notification attribute of the Timer object |
Integer |
addNotification(String type,
String message,
Object userData,
Date date,
long period,
long nbOccurences)
Adds a feature to the Notification attribute of the Timer object |
Integer |
addNotification(String type,
String message,
Object userData,
Date date,
long period,
long nbOccurences,
boolean fixedRate)
Adds a feature to the Notification attribute of the Timer object |
void |
addNotificationListener(NotificationListener listener,
NotificationFilter filter,
Object handback)
Adds a feature to the NotificationListener attribute of the Timer object |
void |
deliverNotifications(Notification tn)
Description of the Method |
Vector |
getAllNotificationIDs()
Gets the allNotificationIDs attribute of the Timer object |
Date |
getDate(Integer id)
Gets the date attribute of the Timer object |
Boolean |
getFixedRate(Integer id)
Gets the fixedRate attribute of the Timer object |
int |
getNbNotifications()
Gets the nbNotifications attribute of the Timer object |
Long |
getNbOccurences(Integer id)
Gets the nbOccurences attribute of the Timer object |
Vector |
getNotificationIDs(String type)
Gets the notificationIDs attribute of the Timer object |
MBeanNotificationInfo[] |
getNotificationInfo()
Gets the notificationInfo attribute of the Timer object |
String |
getNotificationMessage(Integer id)
Gets the notificationMessage attribute of the Timer object |
String |
getNotificationType(Integer id)
Gets the notificationType attribute of the Timer object |
Object |
getNotificationUserData(Integer id)
Gets the notificationUserData attribute of the Timer object |
Long |
getPeriod(Integer id)
Gets the period attribute of the Timer object |
boolean |
getSendPastNotifications()
Gets the sendPastNotifications attribute of the Timer object |
boolean |
isActive()
Gets the active attribute of the Timer object |
boolean |
isEmpty()
Gets the empty attribute of the Timer object |
void |
removeAllNotifications()
Description of the Method |
void |
removeNotification(Integer id)
Description of the Method |
void |
removeNotificationListener(NotificationListener listener)
Description of the Method |
void |
removeNotifications(String type)
Description of the Method |
void |
setSendPastNotifications(boolean value)
Sets the sendPastNotifications attribute of the Timer object |
void |
start()
Starts the timer. |
void |
stop()
Stops the timer |
| Methods inherited from class javax.management.timer.Timer |
|---|
postDeregister, postRegister, preDeregister, preRegister |
| Methods inherited from class javax.management.NotificationBroadcasterSupport |
|---|
handleNotification, removeNotificationListener, sendNotification |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Timer()
| Method Detail |
|---|
public int getNbNotifications()
getNbNotifications in interface TimerMBeangetNbNotifications in class Timerpublic Vector getAllNotificationIDs()
getAllNotificationIDs in interface TimerMBeangetAllNotificationIDs in class Timerpublic Vector getNotificationIDs(String type)
getNotificationIDs in interface TimerMBeangetNotificationIDs in class Timertype - Description of the Parameter
public String getNotificationType(Integer id)
getNotificationType in interface TimerMBeangetNotificationType in class Timerid - Description of the Parameter
public String getNotificationMessage(Integer id)
getNotificationMessage in interface TimerMBeangetNotificationMessage in class Timerid - Description of the Parameter
public Object getNotificationUserData(Integer id)
getNotificationUserData in interface TimerMBeangetNotificationUserData in class Timerid - Description of the Parameter
public Date getDate(Integer id)
getDate in interface TimerMBeangetDate in class Timerid - Description of the Parameter
public Long getPeriod(Integer id)
getPeriod in interface TimerMBeangetPeriod in class Timerid - Description of the Parameter
public Long getNbOccurences(Integer id)
getNbOccurences in interface TimerMBeangetNbOccurences in class Timerid - Description of the Parameter
public Boolean getFixedRate(Integer id)
getFixedRate in interface TimerMBeangetFixedRate in class Timerid - Notification ID
public boolean getSendPastNotifications()
getSendPastNotifications in interface TimerMBeangetSendPastNotifications in class Timerpublic boolean isActive()
isActive in interface TimerMBeanisActive in class Timerpublic boolean isEmpty()
isEmpty in interface TimerMBeanisEmpty in class Timerpublic MBeanNotificationInfo[] getNotificationInfo()
getNotificationInfo in interface NotificationBroadcastergetNotificationInfo in class Timerpublic void setSendPastNotifications(boolean value)
setSendPastNotifications in interface TimerMBeansetSendPastNotifications in class Timervalue - The new sendPastNotifications valuepublic void start()
start in interface TimerMBeanstart in class Timerpublic void stop()
stop in interface TimerMBeanstop in class Timer
public Integer addNotification(String type,
String message,
Object userData,
Date date,
long period,
long nbOccurences)
throws IllegalArgumentException
addNotification in interface TimerMBeanaddNotification in class Timertype - The feature to be added to the Notification attributemessage - The feature to be added to the Notification attributeuserData - The feature to be added to the Notification attributedate - The feature to be added to the Notification attributeperiod - The feature to be added to the Notification attributenbOccurences - The feature to be added to the Notification attribute
IllegalArgumentException - Description of the Exception
public Integer addNotification(String type,
String message,
Object userData,
Date date,
long period,
long nbOccurences,
boolean fixedRate)
throws IllegalArgumentException
addNotification in interface TimerMBeanaddNotification in class Timertype - The feature to be added to the Notification attributemessage - The feature to be added to the Notification attributeuserData - The feature to be added to the Notification attributedate - The feature to be added to the Notification attributeperiod - The feature to be added to the Notification attributenbOccurences - The feature to be added to the Notification attributefixedRate - The value is used to determine execution scheme.
IllegalArgumentException - Description of the Exception
public Integer addNotification(String type,
String message,
Object userData,
Date date,
long period)
throws IllegalArgumentException
addNotification in interface TimerMBeanaddNotification in class Timertype - The feature to be added to the Notification attributemessage - The feature to be added to the Notification attributeuserData - The feature to be added to the Notification attributedate - The feature to be added to the Notification attributeperiod - The feature to be added to the Notification attribute
IllegalArgumentException - Description of the Exception
public Integer addNotification(String type,
String message,
Object userData,
Date date)
throws IllegalArgumentException
addNotification in interface TimerMBeanaddNotification in class Timertype - The feature to be added to the Notification attributemessage - The feature to be added to the Notification attributeuserData - The feature to be added to the Notification attributedate - The feature to be added to the Notification attribute
IllegalArgumentException - Description of the Exception
public void removeNotification(Integer id)
throws InstanceNotFoundException
removeNotification in interface TimerMBeanremoveNotification in class Timerid - Description of the Parameter
InstanceNotFoundException - Description of the Exception
public void removeNotifications(String type)
throws InstanceNotFoundException
removeNotifications in interface TimerMBeanremoveNotifications in class Timertype - Description of the Parameter
InstanceNotFoundException - Description of the Exceptionpublic void removeAllNotifications()
removeAllNotifications in interface TimerMBeanremoveAllNotifications in class Timer
public void addNotificationListener(NotificationListener listener,
NotificationFilter filter,
Object handback)
throws IllegalArgumentException
addNotificationListener in interface NotificationBroadcasteraddNotificationListener in class NotificationBroadcasterSupportlistener - The feature to be added to the NotificationListener attributefilter - The feature to be added to the NotificationListener attributehandback - The feature to be added to the NotificationListener attribute
IllegalArgumentException - Description of the Exception
public void removeNotificationListener(NotificationListener listener)
throws ListenerNotFoundException
removeNotificationListener in interface NotificationBroadcasterremoveNotificationListener in class NotificationBroadcasterSupportlistener - Description of the Parameter
ListenerNotFoundException - Description of the Exceptionpublic void deliverNotifications(Notification tn)
tn - Description of the Parameter
|
Copyright 1996, 2014, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Oracle Fusion Middleware Java API Reference for Oracle WebLogic Server 12c (12.1.3) Part Number E41849-02 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||