java.io.Serializable, javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, javax.management.timer.TimerMBeanpublic final class Timer
extends javax.management.timer.Timer
implements javax.management.timer.TimerMBean, javax.management.NotificationBroadcaster, java.io.Serializable
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.Integer |
addNotification(java.lang.String type,
java.lang.String message,
java.lang.Object userData,
java.util.Date date) |
Adds a feature to the Notification attribute of the Timer object
|
java.lang.Integer |
addNotification(java.lang.String type,
java.lang.String message,
java.lang.Object userData,
java.util.Date date,
long period) |
Adds a feature to the Notification attribute of the Timer object
|
java.lang.Integer |
addNotification(java.lang.String type,
java.lang.String message,
java.lang.Object userData,
java.util.Date date,
long period,
long nbOccurences) |
Adds a feature to the Notification attribute of the Timer object
|
java.lang.Integer |
addNotification(java.lang.String type,
java.lang.String message,
java.lang.Object userData,
java.util.Date date,
long period,
long nbOccurences,
boolean fixedRate) |
|
void |
addNotificationListener(javax.management.NotificationListener listener,
javax.management.NotificationFilter filter,
java.lang.Object handback) |
Adds a feature to the NotificationListener attribute of the Timer object
|
void |
deliverNotifications(javax.management.Notification tn) |
Description of the Method
|
java.util.Vector |
getAllNotificationIDs() |
Gets the allNotificationIDs attribute of the Timer object
|
java.util.Date |
getDate(java.lang.Integer id) |
Gets the date attribute of the Timer object
|
java.lang.Boolean |
getFixedRate(java.lang.Integer id) |
|
int |
getNbNotifications() |
Gets the nbNotifications attribute of the Timer object
|
java.lang.Long |
getNbOccurences(java.lang.Integer id) |
Gets the nbOccurences attribute of the Timer object
|
java.util.Vector |
getNotificationIDs(java.lang.String type) |
Gets the notificationIDs attribute of the Timer object
|
javax.management.MBeanNotificationInfo[] |
getNotificationInfo() |
Gets the notificationInfo attribute of the Timer object
|
java.lang.String |
getNotificationMessage(java.lang.Integer id) |
Gets the notificationMessage attribute of the Timer object
|
java.lang.String |
getNotificationType(java.lang.Integer id) |
Gets the notificationType attribute of the Timer object
|
java.lang.Object |
getNotificationUserData(java.lang.Integer id) |
Gets the notificationUserData attribute of the Timer object
|
java.lang.Long |
getPeriod(java.lang.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(java.lang.Integer id) |
Description of the Method
|
void |
removeNotificationListener(javax.management.NotificationListener listener) |
Description of the Method
|
void |
removeNotifications(java.lang.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
|
handleNotification, removeNotificationListener, sendNotificationpublic int getNbNotifications()
getNbNotifications in interface javax.management.timer.TimerMBeangetNbNotifications in class javax.management.timer.Timerpublic java.util.Vector getAllNotificationIDs()
getAllNotificationIDs in interface javax.management.timer.TimerMBeangetAllNotificationIDs in class javax.management.timer.Timerpublic java.util.Vector getNotificationIDs(java.lang.String type)
getNotificationIDs in interface javax.management.timer.TimerMBeangetNotificationIDs in class javax.management.timer.Timertype - Description of the Parameterpublic java.lang.String getNotificationType(java.lang.Integer id)
getNotificationType in interface javax.management.timer.TimerMBeangetNotificationType in class javax.management.timer.Timerid - Description of the Parameterpublic java.lang.String getNotificationMessage(java.lang.Integer id)
getNotificationMessage in interface javax.management.timer.TimerMBeangetNotificationMessage in class javax.management.timer.Timerid - Description of the Parameterpublic java.lang.Object getNotificationUserData(java.lang.Integer id)
getNotificationUserData in interface javax.management.timer.TimerMBeangetNotificationUserData in class javax.management.timer.Timerid - Description of the Parameterpublic java.util.Date getDate(java.lang.Integer id)
getDate in interface javax.management.timer.TimerMBeangetDate in class javax.management.timer.Timerid - Description of the Parameterpublic java.lang.Long getPeriod(java.lang.Integer id)
getPeriod in interface javax.management.timer.TimerMBeangetPeriod in class javax.management.timer.Timerid - Description of the Parameterpublic java.lang.Long getNbOccurences(java.lang.Integer id)
getNbOccurences in interface javax.management.timer.TimerMBeangetNbOccurences in class javax.management.timer.Timerid - Description of the Parameterpublic java.lang.Boolean getFixedRate(java.lang.Integer id)
getFixedRate in interface javax.management.timer.TimerMBeangetFixedRate in class javax.management.timer.Timerpublic boolean getSendPastNotifications()
getSendPastNotifications in interface javax.management.timer.TimerMBeangetSendPastNotifications in class javax.management.timer.Timerpublic boolean isActive()
isActive in interface javax.management.timer.TimerMBeanisActive in class javax.management.timer.Timerpublic boolean isEmpty()
isEmpty in interface javax.management.timer.TimerMBeanisEmpty in class javax.management.timer.Timerpublic javax.management.MBeanNotificationInfo[] getNotificationInfo()
getNotificationInfo in interface javax.management.NotificationBroadcastergetNotificationInfo in class javax.management.timer.Timerpublic void setSendPastNotifications(boolean value)
setSendPastNotifications in interface javax.management.timer.TimerMBeansetSendPastNotifications in class javax.management.timer.Timervalue - The new sendPastNotifications valuepublic void start()
start in interface javax.management.timer.TimerMBeanstart in class javax.management.timer.Timerpublic void stop()
stop in interface javax.management.timer.TimerMBeanstop in class javax.management.timer.Timerpublic java.lang.Integer addNotification(java.lang.String type,
java.lang.String message,
java.lang.Object userData,
java.util.Date date,
long period,
long nbOccurences)
throws java.lang.IllegalArgumentException
addNotification in interface javax.management.timer.TimerMBeanaddNotification in class javax.management.timer.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 attributejava.lang.IllegalArgumentException - Description of the Exceptionpublic java.lang.Integer addNotification(java.lang.String type,
java.lang.String message,
java.lang.Object userData,
java.util.Date date,
long period,
long nbOccurences,
boolean fixedRate)
throws java.lang.IllegalArgumentException
addNotification in interface javax.management.timer.TimerMBeanaddNotification in class javax.management.timer.Timerjava.lang.IllegalArgumentExceptionpublic java.lang.Integer addNotification(java.lang.String type,
java.lang.String message,
java.lang.Object userData,
java.util.Date date,
long period)
throws java.lang.IllegalArgumentException
addNotification in interface javax.management.timer.TimerMBeanaddNotification in class javax.management.timer.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 attributejava.lang.IllegalArgumentException - Description of the Exceptionpublic java.lang.Integer addNotification(java.lang.String type,
java.lang.String message,
java.lang.Object userData,
java.util.Date date)
throws java.lang.IllegalArgumentException
addNotification in interface javax.management.timer.TimerMBeanaddNotification in class javax.management.timer.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 attributejava.lang.IllegalArgumentException - Description of the Exceptionpublic void removeNotification(java.lang.Integer id)
throws javax.management.InstanceNotFoundException
removeNotification in interface javax.management.timer.TimerMBeanremoveNotification in class javax.management.timer.Timerid - Description of the Parameterjavax.management.InstanceNotFoundException - Description of the Exceptionpublic void removeNotifications(java.lang.String type)
throws javax.management.InstanceNotFoundException
removeNotifications in interface javax.management.timer.TimerMBeanremoveNotifications in class javax.management.timer.Timertype - Description of the Parameterjavax.management.InstanceNotFoundException - Description of the Exceptionpublic void removeAllNotifications()
removeAllNotifications in interface javax.management.timer.TimerMBeanremoveAllNotifications in class javax.management.timer.Timerpublic void addNotificationListener(javax.management.NotificationListener listener,
javax.management.NotificationFilter filter,
java.lang.Object handback)
throws java.lang.IllegalArgumentException
addNotificationListener in interface javax.management.NotificationBroadcasteraddNotificationListener in class javax.management.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 attributejava.lang.IllegalArgumentException - Description of the Exceptionpublic void removeNotificationListener(javax.management.NotificationListener listener)
throws javax.management.ListenerNotFoundException
removeNotificationListener in interface javax.management.NotificationBroadcasterremoveNotificationListener in class javax.management.NotificationBroadcasterSupportlistener - Description of the Parameterjavax.management.ListenerNotFoundException - Description of the Exceptionpublic void deliverNotifications(javax.management.Notification tn)
tn - Description of the Parameter