| javax.management.Notification javax.management.MBeanServerNotification
All known Subclasses: org.huihoo.jfox.jmx.ExtendedMBeanServerNotification,
MBeanServerNotification | public class MBeanServerNotification extends Notification (Code) | | Represents a notification emitted by the MBean server through the MBeanServerDelegate MBean.
The MBean Server emits the following types of notifications: MBean registration, MBean
de-registration.
To receive to MBeanServerNotifications, you need to be declared as listener to
the
javax.management.MBeanServerDelegate javax.management.MBeanServerDelegate MBean
that represents the MBeanServer. The ObjectName of the MBeanServerDelegate is:
JMImplementation:type=MBeanServerDelegate .
author: Young Yang |
Constructor Summary | |
public | MBeanServerNotification(String type, Object source, long sequenceNumber, ObjectName objectName) Creates an MBeanServerNotification object specifying object names of
the MBeans that caused the notification and the specified notification type.
Parameters: type - A string denoting the type of the notification. |
Method Summary | |
public ObjectName | getMBeanName() Returns the object name of the MBean that caused the notification. |
REGISTRATION_NOTIFICATION | final public static String REGISTRATION_NOTIFICATION(Code) | | Notification type denoting that an MBean has been registered. Value is "JMX.mbean.registered".
|
UNREGISTRATION_NOTIFICATION | final public static String UNREGISTRATION_NOTIFICATION(Code) | | Notification type denoting that an MBean has been unregistered. Value is "JMX.mbean.unregistered".
|
MBeanServerNotification | public MBeanServerNotification(String type, Object source, long sequenceNumber, ObjectName objectName)(Code) | | Creates an MBeanServerNotification object specifying 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_NOTIFICATION Parameters: source - The MBeanServerNotification object responsible for forwarding MBean server notification. Parameters: objectName - The object name of the MBean that caused the notification. |
getMBeanName | public ObjectName getMBeanName()(Code) | | Returns the object name of the MBean that caused the notification.
|
|
|