javax.management
Class MBeanServerNotification
java.lang.Object
java.util.EventObject
javax.management.Notification
javax.management.MBeanServerNotification
- All Implemented Interfaces:
- Serializable
public class MBeanServerNotification
- extends Notification
The notification emitted by a management server on a registration
or de-registration event. Events are emitted via the delegate
management bean of the server. Other objects can listen for
such events by registering their interest with the delegate
bean. The bean can be obtained via the ObjectName
JMImplementation:type=MBeanServerDelegate
.
- Since:
- 1.5
- See Also:
- Serialized Form
REGISTRATION_NOTIFICATION
public static final String REGISTRATION_NOTIFICATION
- Notification type for the registration event.
- See Also:
- Constant Field Values
UNREGISTRATION_NOTIFICATION
public static final String UNREGISTRATION_NOTIFICATION
- Notification type for the de-registration event.
- See Also:
- Constant Field Values
MBeanServerNotification
public MBeanServerNotification(String type,
Object source,
long seqNo,
ObjectName name)
- Constructs a new
MBeanServerNotification
of the specified
type for an event relating to the supplied bean, with the given
source and sequence number.
- Parameters:
type
- the type of notification (registration or de-registration).source
- the source of the notification.seqNo
- the sequence number of this notification, used to order
multiple such notifications.name
- the name of the bean concerned by this event.
getMBeanName
public ObjectName getMBeanName()
- Returns the name of the bean this notification concerns.
- Returns:
- the name of the bean.