javax.management
Class MBeanServerNotification

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by java.util.EventObject sample code for java.util.EventObject definition code for java.util.EventObject 
      extended by javax.management.Notification sample code for javax.management.Notification definition code for javax.management.Notification 
          extended by javax.management.MBeanServerNotification
All Implemented Interfaces:
Serializable sample code for java.io.Serializable definition code for java.io.Serializable

public class MBeanServerNotification
extends Notification sample code for javax.management.Notification definition code for javax.management.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 javax.management.MBeanServerDelegate sample code for javax.management.MBeanServerDelegate definition code for javax.management.MBeanServerDelegate MBean that represents the MBeanServer. The ObjectName of the MBeanServerDelegate is: JMImplementation:type=MBeanServerDelegate.

Since:
1.5
See Also:
Serialized Form

Field Summary
static String sample code for java.lang.String definition code for java.lang.String REGISTRATION_NOTIFICATION sample code for javax.management.MBeanServerNotification.REGISTRATION_NOTIFICATION definition code for javax.management.MBeanServerNotification.REGISTRATION_NOTIFICATION
          Notification type denoting that an MBean has been registered.
static String sample code for java.lang.String definition code for java.lang.String UNREGISTRATION_NOTIFICATION sample code for javax.management.MBeanServerNotification.UNREGISTRATION_NOTIFICATION definition code for javax.management.MBeanServerNotification.UNREGISTRATION_NOTIFICATION
          Notification type denoting that an MBean has been unregistered.
 
Fields inherited from class javax.management.Notification sample code for javax.management.Notification definition code for javax.management.Notification
source sample code for javax.management.Notification.source definition code for javax.management.Notification.source
 
Constructor Summary
MBeanServerNotification sample code for javax.management.MBeanServerNotification.MBeanServerNotification(java.lang.String, java.lang.Object, long, javax.management.ObjectName) definition code for javax.management.MBeanServerNotification.MBeanServerNotification(java.lang.String, java.lang.Object, long, javax.management.ObjectName) (String sample code for java.lang.String definition code for java.lang.String  type, Object sample code for java.lang.Object definition code for java.lang.Object  source, long sequenceNumber, ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName  objectName)
          Creates an MBeanServerNotification object specifying object names of the MBeans that caused the notification and the specified notification type.
 
Method Summary
 ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName getMBeanName sample code for javax.management.MBeanServerNotification.getMBeanName() definition code for javax.management.MBeanServerNotification.getMBeanName() ()
          Returns the object name of the MBean that caused the notification.
 
Methods inherited from class javax.management.Notification sample code for javax.management.Notification definition code for javax.management.Notification
getMessage sample code for javax.management.Notification.getMessage() definition code for javax.management.Notification.getMessage() , getSequenceNumber sample code for javax.management.Notification.getSequenceNumber() definition code for javax.management.Notification.getSequenceNumber() , getTimeStamp sample code for javax.management.Notification.getTimeStamp() definition code for javax.management.Notification.getTimeStamp() , getType sample code for javax.management.Notification.getType() definition code for javax.management.Notification.getType() , getUserData sample code for javax.management.Notification.getUserData() definition code for javax.management.Notification.getUserData() , setSequenceNumber sample code for javax.management.Notification.setSequenceNumber(long) definition code for javax.management.Notification.setSequenceNumber(long) , setSource sample code for javax.management.Notification.setSource(java.lang.Object) definition code for javax.management.Notification.setSource(java.lang.Object) , setTimeStamp sample code for javax.management.Notification.setTimeStamp(long) definition code for javax.management.Notification.setTimeStamp(long) , setUserData sample code for javax.management.Notification.setUserData(java.lang.Object) definition code for javax.management.Notification.setUserData(java.lang.Object) , toString sample code for javax.management.Notification.toString() definition code for javax.management.Notification.toString()
 
Methods inherited from class java.util.EventObject sample code for java.util.EventObject definition code for java.util.EventObject
getSource sample code for java.util.EventObject.getSource() definition code for java.util.EventObject.getSource()
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Field Detail

REGISTRATION_NOTIFICATION sample code for javax.management.MBeanServerNotification.REGISTRATION_NOTIFICATION

public static final String sample code for java.lang.String definition code for java.lang.String  REGISTRATION_NOTIFICATION
Notification type denoting that an MBean has been registered. Value is "JMX.mbean.registered".

See Also:
Constant Field Values

UNREGISTRATION_NOTIFICATION sample code for javax.management.MBeanServerNotification.UNREGISTRATION_NOTIFICATION

public static final String sample code for java.lang.String definition code for java.lang.String  UNREGISTRATION_NOTIFICATION
Notification type denoting that an MBean has been unregistered. Value is "JMX.mbean.unregistered".

See Also:
Constant Field Values
Constructor Detail

MBeanServerNotification sample code for javax.management.MBeanServerNotification(java.lang.String, java.lang.Object, long, javax.management.ObjectName) definition code for javax.management.MBeanServerNotification(java.lang.String, java.lang.Object, long, javax.management.ObjectName)

public MBeanServerNotification(String sample code for java.lang.String definition code for java.lang.String  type,
                               Object sample code for java.lang.Object definition code for java.lang.Object  source,
                               long sequenceNumber,
                               ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName  objectName)
Creates an MBeanServerNotification object specifying object names of the MBeans that caused the notification and the specified notification type.

Parameters:
type - A string denoting the type of the notification. Set it to one these values: REGISTRATION_NOTIFICATION sample code for javax.management.MBeanServerNotification.REGISTRATION_NOTIFICATION definition code for javax.management.MBeanServerNotification.REGISTRATION_NOTIFICATION , UNREGISTRATION_NOTIFICATION sample code for javax.management.MBeanServerNotification.UNREGISTRATION_NOTIFICATION definition code for javax.management.MBeanServerNotification.UNREGISTRATION_NOTIFICATION .
source - The MBeanServerNotification object responsible for forwarding MBean server notification.
sequenceNumber - A sequence number that can be used to order received notifications.
objectName - The object name of the MBean that caused the notification.
Method Detail

getMBeanName sample code for javax.management.MBeanServerNotification.getMBeanName() definition code for javax.management.MBeanServerNotification.getMBeanName()

public ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName  getMBeanName()
Returns the object name of the MBean that caused the notification.

Returns:
the object name of the MBean that caused the notification.