public final class Timer
extends javax.management.timer.Timer
implements javax.management.timer.TimerMBean, javax.management.NotificationBroadcaster, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
private TimerListener[] |
allListeners |
private java.util.Map |
allNotifications |
private int |
Id |
private boolean |
isActive |
private int |
listenerCount |
private java.lang.Object |
listenerLock |
private int |
notificationCount |
private java.util.Set |
pastNotifications |
private boolean |
sendPastNotifications |
(package private) weblogic.timers.TimerManager |
timerManager |
Constructor and Description |
---|
Timer()
Constructor for the Timer object
|
Modifier and Type | Method and 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
|
(package private) void |
addPastNotification(TimerNotification tn) |
void |
deliverNotifications(javax.management.Notification tn)
Description of the Method
|
private void |
firePastNotifications() |
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
|
private java.lang.Integer |
getNextId() |
private TimerNotification |
getNotification(java.lang.Integer id) |
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
|
postDeregister, postRegister, preDeregister, preRegister
private java.lang.Object listenerLock
private java.util.Map allNotifications
private TimerListener[] allListeners
private int notificationCount
private int listenerCount
private boolean sendPastNotifications
weblogic.timers.TimerManager timerManager
private int Id
private volatile boolean isActive
private java.util.Set pastNotifications
public int getNbNotifications()
getNbNotifications
in interface javax.management.timer.TimerMBean
getNbNotifications
in class javax.management.timer.Timer
public java.util.Vector getAllNotificationIDs()
getAllNotificationIDs
in interface javax.management.timer.TimerMBean
getAllNotificationIDs
in class javax.management.timer.Timer
public java.util.Vector getNotificationIDs(java.lang.String type)
getNotificationIDs
in interface javax.management.timer.TimerMBean
getNotificationIDs
in class javax.management.timer.Timer
type
- Description of the Parameterpublic java.lang.String getNotificationType(java.lang.Integer id)
getNotificationType
in interface javax.management.timer.TimerMBean
getNotificationType
in class javax.management.timer.Timer
id
- Description of the Parameterpublic java.lang.String getNotificationMessage(java.lang.Integer id)
getNotificationMessage
in interface javax.management.timer.TimerMBean
getNotificationMessage
in class javax.management.timer.Timer
id
- Description of the Parameterpublic java.lang.Object getNotificationUserData(java.lang.Integer id)
getNotificationUserData
in interface javax.management.timer.TimerMBean
getNotificationUserData
in class javax.management.timer.Timer
id
- Description of the Parameterpublic java.util.Date getDate(java.lang.Integer id)
getDate
in interface javax.management.timer.TimerMBean
getDate
in class javax.management.timer.Timer
id
- Description of the Parameterpublic java.lang.Long getPeriod(java.lang.Integer id)
getPeriod
in interface javax.management.timer.TimerMBean
getPeriod
in class javax.management.timer.Timer
id
- Description of the Parameterpublic java.lang.Long getNbOccurences(java.lang.Integer id)
getNbOccurences
in interface javax.management.timer.TimerMBean
getNbOccurences
in class javax.management.timer.Timer
id
- Description of the Parameterpublic java.lang.Boolean getFixedRate(java.lang.Integer id)
getFixedRate
in interface javax.management.timer.TimerMBean
getFixedRate
in class javax.management.timer.Timer
public boolean getSendPastNotifications()
getSendPastNotifications
in interface javax.management.timer.TimerMBean
getSendPastNotifications
in class javax.management.timer.Timer
public boolean isActive()
isActive
in interface javax.management.timer.TimerMBean
isActive
in class javax.management.timer.Timer
public boolean isEmpty()
isEmpty
in interface javax.management.timer.TimerMBean
isEmpty
in class javax.management.timer.Timer
public javax.management.MBeanNotificationInfo[] getNotificationInfo()
getNotificationInfo
in interface javax.management.NotificationBroadcaster
getNotificationInfo
in class javax.management.timer.Timer
public void setSendPastNotifications(boolean value)
setSendPastNotifications
in interface javax.management.timer.TimerMBean
setSendPastNotifications
in class javax.management.timer.Timer
value
- The new sendPastNotifications valuepublic void start()
start
in interface javax.management.timer.TimerMBean
start
in class javax.management.timer.Timer
public void stop()
stop
in interface javax.management.timer.TimerMBean
stop
in class javax.management.timer.Timer
public 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.TimerMBean
addNotification
in class javax.management.timer.Timer
type
- 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.TimerMBean
addNotification
in class javax.management.timer.Timer
java.lang.IllegalArgumentException
public 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.TimerMBean
addNotification
in class javax.management.timer.Timer
type
- 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.TimerMBean
addNotification
in class javax.management.timer.Timer
type
- 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.TimerMBean
removeNotification
in class javax.management.timer.Timer
id
- 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.TimerMBean
removeNotifications
in class javax.management.timer.Timer
type
- Description of the Parameterjavax.management.InstanceNotFoundException
- Description of the Exceptionpublic void removeAllNotifications()
removeAllNotifications
in interface javax.management.timer.TimerMBean
removeAllNotifications
in class javax.management.timer.Timer
public void addNotificationListener(javax.management.NotificationListener listener, javax.management.NotificationFilter filter, java.lang.Object handback) throws java.lang.IllegalArgumentException
addNotificationListener
in interface javax.management.NotificationBroadcaster
addNotificationListener
in class javax.management.NotificationBroadcasterSupport
listener
- 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.NotificationBroadcaster
removeNotificationListener
in class javax.management.NotificationBroadcasterSupport
listener
- Description of the Parameterjavax.management.ListenerNotFoundException
- Description of the Exceptionpublic void deliverNotifications(javax.management.Notification tn)
tn
- Description of the Parameterprivate java.lang.Integer getNextId()
private TimerNotification getNotification(java.lang.Integer id)
void addPastNotification(TimerNotification tn)
private void firePastNotifications()