|
Oracle Fusion Middleware Oracle WebLogic Server API Reference 11g Release 1 (10.3.5) Part Number E13941-05 |
||||||||||
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 TimerMBean
getNbNotifications
in class Timer
public Vector getAllNotificationIDs()
getAllNotificationIDs
in interface TimerMBean
getAllNotificationIDs
in class Timer
public Vector getNotificationIDs(String type)
getNotificationIDs
in interface TimerMBean
getNotificationIDs
in class Timer
type
- Description of the Parameter
public String getNotificationType(Integer id)
getNotificationType
in interface TimerMBean
getNotificationType
in class Timer
id
- Description of the Parameter
public String getNotificationMessage(Integer id)
getNotificationMessage
in interface TimerMBean
getNotificationMessage
in class Timer
id
- Description of the Parameter
public Object getNotificationUserData(Integer id)
getNotificationUserData
in interface TimerMBean
getNotificationUserData
in class Timer
id
- Description of the Parameter
public Date getDate(Integer id)
getDate
in interface TimerMBean
getDate
in class Timer
id
- Description of the Parameter
public Long getPeriod(Integer id)
getPeriod
in interface TimerMBean
getPeriod
in class Timer
id
- Description of the Parameter
public Long getNbOccurences(Integer id)
getNbOccurences
in interface TimerMBean
getNbOccurences
in class Timer
id
- Description of the Parameter
public Boolean getFixedRate(Integer id)
getFixedRate
in interface TimerMBean
getFixedRate
in class Timer
id
- Notification ID
public boolean getSendPastNotifications()
getSendPastNotifications
in interface TimerMBean
getSendPastNotifications
in class Timer
public boolean isActive()
isActive
in interface TimerMBean
isActive
in class Timer
public boolean isEmpty()
isEmpty
in interface TimerMBean
isEmpty
in class Timer
public MBeanNotificationInfo[] getNotificationInfo()
getNotificationInfo
in interface NotificationBroadcaster
getNotificationInfo
in class Timer
public void setSendPastNotifications(boolean value)
setSendPastNotifications
in interface TimerMBean
setSendPastNotifications
in class Timer
value
- The new sendPastNotifications valuepublic void start()
start
in interface TimerMBean
start
in class Timer
public void stop()
stop
in interface TimerMBean
stop
in class Timer
public Integer addNotification(String type, String message, Object userData, Date date, long period, long nbOccurences) throws IllegalArgumentException
addNotification
in interface TimerMBean
addNotification
in class 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 attribute
IllegalArgumentException
- Description of the Exceptionpublic Integer addNotification(String type, String message, Object userData, Date date, long period, long nbOccurences, boolean fixedRate) throws IllegalArgumentException
addNotification
in interface TimerMBean
addNotification
in class 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 attributefixedRate
- The value is used to determine execution scheme.
IllegalArgumentException
- Description of the Exceptionpublic Integer addNotification(String type, String message, Object userData, Date date, long period) throws IllegalArgumentException
addNotification
in interface TimerMBean
addNotification
in class 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 attribute
IllegalArgumentException
- Description of the Exceptionpublic Integer addNotification(String type, String message, Object userData, Date date) throws IllegalArgumentException
addNotification
in interface TimerMBean
addNotification
in class 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 attribute
IllegalArgumentException
- Description of the Exceptionpublic void removeNotification(Integer id) throws InstanceNotFoundException
removeNotification
in interface TimerMBean
removeNotification
in class Timer
id
- Description of the Parameter
InstanceNotFoundException
- Description of the Exceptionpublic void removeNotifications(String type) throws InstanceNotFoundException
removeNotifications
in interface TimerMBean
removeNotifications
in class Timer
type
- Description of the Parameter
InstanceNotFoundException
- Description of the Exceptionpublic void removeAllNotifications()
removeAllNotifications
in interface TimerMBean
removeAllNotifications
in class Timer
public void addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) throws IllegalArgumentException
addNotificationListener
in interface NotificationBroadcaster
addNotificationListener
in class 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 attribute
IllegalArgumentException
- Description of the Exceptionpublic void removeNotificationListener(NotificationListener listener) throws ListenerNotFoundException
removeNotificationListener
in interface NotificationBroadcaster
removeNotificationListener
in class NotificationBroadcasterSupport
listener
- Description of the Parameter
ListenerNotFoundException
- Description of the Exceptionpublic void deliverNotifications(Notification tn)
tn
- Description of the Parameter
|
Copyright 1996, 2011, 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 Oracle WebLogic Server API Reference 11g Release 1 (10.3.5) Part Number E13941-05 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |