MBeanServerNotificationpublic class MBeanServerNotification extends Notification 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 {@link javax.management.MBeanServerDelegate javax.management.MBeanServerDelegate} MBean
that represents the MBeanServer. The ObjectName of the MBeanServerDelegate is:
JMImplementation:type=MBeanServerDelegate . |
Fields Summary |
---|
private static final long | serialVersionUID | public static final String | REGISTRATION_NOTIFICATIONNotification type denoting that an MBean has been registered. Value is "JMX.mbean.registered". | public static final String | UNREGISTRATION_NOTIFICATIONNotification type denoting that an MBean has been unregistered. Value is "JMX.mbean.unregistered". | private final ObjectName | objectName |
Constructors 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.
super (type,source,sequenceNumber) ;
this.objectName = objectName ;
|
Methods Summary |
---|
public javax.management.ObjectName | getMBeanName()Returns the object name of the MBean that caused the notification.
return objectName ;
|
|