javax.management

Class MBeanServerNotification

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 {@link ObjectName} JMImplementation:type=MBeanServerDelegate.

Since: 1.5

Field Summary
static StringREGISTRATION_NOTIFICATION
Notification type for the registration event.
static StringUNREGISTRATION_NOTIFICATION
Notification type for the de-registration event.
Constructor Summary
MBeanServerNotification(String type, Object source, long seqNo, ObjectName name)
Constructs a new {@link MBeanServerNotification} of the specified type for an event relating to the supplied bean, with the given source and sequence number.
Method Summary
ObjectNamegetMBeanName()
Returns the name of the bean this notification concerns.

Field Detail

REGISTRATION_NOTIFICATION

public static final String REGISTRATION_NOTIFICATION
Notification type for the registration event.

UNREGISTRATION_NOTIFICATION

public static final String UNREGISTRATION_NOTIFICATION
Notification type for the de-registration event.

Constructor Detail

MBeanServerNotification

public MBeanServerNotification(String type, Object source, long seqNo, ObjectName name)
Constructs a new {@link 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.

Method Detail

getMBeanName

public ObjectName getMBeanName()
Returns the name of the bean this notification concerns.

Returns: the name of the bean.