javax.management
Class MBeanServerNotification
java.lang.Object
|
+--java.util.EventObject
|
+--javax.management.Notification
|
+--javax.management.MBeanServerNotification
- All Implemented Interfaces:
- java.io.Serializable
- public class MBeanServerNotification
- extends Notification
The MBeanServerNotification class represents an notification emitted by the
MBean Server. The MBean Server emits these types of notifications:
MBean registration, MBean de-registration.
To receive to MBeanServerNotifications, you need to be declared as listener
to the javax.management.MBeanServerDelegate
MBean that represents the MBeanServer.
The ObjectName of the MBeanServerDelegate is:
JMImplementation:type=MBeanServerDelegate
.
- See Also:
- Serialized Form
Constructor Summary |
MBeanServerNotification(java.lang.String type,
java.lang.Object source,
long sequenceNumber,
ObjectName objectName)
Creates a MBeanServerNotification object with specified object names of
the MBeans that caused the notification and the specified notification type. |
Methods inherited from class javax.management.Notification |
getMessage, getSequenceNumber, getSource, getTimeStamp, getType, getUserData, setSequenceNumber, setSource, setTimeStamp, setUserData, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
REGISTRATION_NOTIFICATION
public static final java.lang.String REGISTRATION_NOTIFICATION
- Notification type denoting that a MBean has been registered. Value is
"JMX.mbean.registered".
UNREGISTRATION_NOTIFICATION
public static final java.lang.String UNREGISTRATION_NOTIFICATION
- Notification type denoting that a MBean has been uregsitered. Value is
"JMX.mbean.unregistered".
MBeanServerNotification
public MBeanServerNotification(java.lang.String type,
java.lang.Object source,
long sequenceNumber,
ObjectName objectName)
- Creates a MBeanServerNotification object with specified object names of
the MBeans that caused the notification and the specified notification type.
- Parameters:
type
- A string denoting the type of the notification. Set it to
one these values:
REGISTRATION_NOTIFICATION, UNREGISTRATION_NOTIFICATIONsource
- The MBeanServerNotification object responsible to
forward MBeanServer notification.sequenceNumber
- The notification sequence number within
the source objectobjectNames
- A list of the object names of the MBeans that
caused the notification.
getMBeanName
public ObjectName getMBeanName()
- Returns object name of the MBean that caused the notification
- Returns:
- This returns name of the MBean that caused the notification
Copyright ©2003 XMOJO.org. All Rights Reserved.