javax.slee.management
Class SleeStateChangeNotification
java.lang.Object
|
+--java.util.EventObject
|
+--javax.management.Notification
|
+--javax.slee.management.SleeStateChangeNotification
- All Implemented Interfaces:
- java.io.Serializable
- public class SleeStateChangeNotification
- extends javax.management.Notification
This notification is emitted by a SleeManagementMBean
object to
indicate a change in the operational state of the SLEE.
The base type of all slee state change notifications is specified by the
SleeManagementMBean.SLEE_STATE_CHANGE_NOTIFICATION_TYPE
attribute.
- See Also:
- Serialized Form
Fields inherited from class javax.management.Notification |
source |
Method Summary |
SleeState |
getNewState()
Get the new operational state of the SLEE. |
SleeState |
getOldState()
Get the state the SLEE was in before the change to the new state. |
java.lang.String |
toString()
Get a string representation for this notification. |
Methods inherited from class javax.management.Notification |
getMessage, getSequenceNumber, getSource, getTimeStamp, getType, getUserData, setSequenceNumber, setSource, setTimeStamp, setUserData |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SleeStateChangeNotification
public SleeStateChangeNotification(SleeManagementMBean notificationSource,
SleeState newState,
SleeState oldState,
long sequenceNumber)
throws java.lang.NullPointerException
- Create a
SleeStateChangeNotification
to notify listeners of a
change in the operational state of the SLEE. Notifications are broadcast
after the SLEE has changed to the new state.
- Parameters:
notificationSource
- the SleeManagementMBean
object that is
emitting this notification.newState
- the new operational state of the SLEE.oldState
- the old operational state of the SLEE.sequenceNumber
- the notification sequence number within the source
SleeProviderMBean
object.- Throws:
java.lang.NullPointerException
- if notificationSource
, newState
,
or oldState
is null
.
getNewState
public final SleeState getNewState()
- Get the new operational state of the SLEE.
- Returns:
- the new state.
getOldState
public final SleeState getOldState()
- Get the state the SLEE was in before the change to the new state.
- Returns:
- the old state.
toString
public java.lang.String toString()
- Get a string representation for this notification.
- Overrides:
toString
in class java.util.EventObject
- Returns:
- a string representation for this notification.