javax.management
Class MBeanServerNotification

java.lang.Object
  extended byjava.util.EventObject
      extended byjavax.management.Notification (src) 
          extended byjavax.management.MBeanServerNotification
All Implemented Interfaces:
java.io.Serializable

public class MBeanServerNotification
extends Notification (src)

A notification sent by the MBeanServer delegate when an MBean is registered or unregisterd.

NOTE: The values from the spec are wrong, the real values are REGISTRATION_NOTIFICATION = "JMX.mbean.registered" UNREGISTRATION_NOTIFICATION = "JMX.mbean.registered"

Revisions:

20020315 Adrian Brock:

20020711 Adrian Brock:

See Also:
Serialized Form

Field Summary
static java.lang.String REGISTRATION_NOTIFICATION
          Notification type sent at MBean registration
static java.lang.String UNREGISTRATION_NOTIFICATION
          Notification type sent at MBean registration
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
MBeanServerNotification(java.lang.String type, java.lang.Object source, long sequence, ObjectName (src)  objectName)
          Construct a new MBeanServer notification
 
Method Summary
 ObjectName (src) getMBeanName()
          Get the object name of the mbean being (un)registered
 java.lang.String toString()
           
 
Methods inherited from class javax.management.Notification (src)
getMessage, getSequenceNumber, getSource, getTimeStamp, getType, getUserData, setSequenceNumber, setSource, setTimeStamp, setUserData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

REGISTRATION_NOTIFICATION

public static final java.lang.String REGISTRATION_NOTIFICATION
Notification type sent at MBean registration

See Also:
Constant Field Values (src)

UNREGISTRATION_NOTIFICATION

public static final java.lang.String UNREGISTRATION_NOTIFICATION
Notification type sent at MBean registration

See Also:
Constant Field Values (src)
Constructor Detail

MBeanServerNotification

public MBeanServerNotification(java.lang.String type,
                               java.lang.Object source,
                               long sequence,
                               ObjectName (src)  objectName)
Construct a new MBeanServer notification

Parameters:
type - the type of notification to construct
source - the source of the notification
sequence - the sequence number of the notification
objectName - the object name of the mbean being (un)registered
Method Detail

getMBeanName

public ObjectName (src)  getMBeanName()
Get the object name of the mbean being (un)registered

Returns:
the object name

toString

public java.lang.String toString()
Overrides:
toString in class Notification (src)
Returns:
human readable string.