javax.management
Class MBeanServerNotification

java.lang.Object
  extended by java.util.EventObject
      extended by javax.management.Notification
          extended by 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

Field Summary
static String REGISTRATION_NOTIFICATION
          Notification type for the registration event.
static String UNREGISTRATION_NOTIFICATION
          Notification type for the de-registration event.
 
Fields inherited from class javax.management.Notification
source
 
Constructor Summary
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.
 
Method Summary
 ObjectName getMBeanName()
          Returns the name of the bean this notification concerns.
 
Methods inherited from class javax.management.Notification
getMessage, getSequenceNumber, getTimeStamp, getType, getUserData, setSequenceNumber, setSource, setTimeStamp, setUserData, toString
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

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.
Method Detail

getMBeanName

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

Returns:
the name of the bean.