FileDocCategorySizeDatePackage
MBeanServerNotification.javaAPI DocJava SE 5 API2696Fri Aug 26 14:57:32 BST 2005javax.management

MBeanServerNotification

public class MBeanServerNotification extends 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 {@link javax.management.MBeanServerDelegate javax.management.MBeanServerDelegate} MBean that represents the MBeanServer. The ObjectName of the MBeanServerDelegate is: JMImplementation:type=MBeanServerDelegate.

since
1.5

Fields Summary
private static final long
serialVersionUID
public static final String
REGISTRATION_NOTIFICATION
Notification type denoting that an MBean has been registered. Value is "JMX.mbean.registered".
public static final String
UNREGISTRATION_NOTIFICATION
Notification type denoting that an MBean has been unregistered. Value is "JMX.mbean.unregistered".
private final ObjectName
objectName
Constructors Summary
public MBeanServerNotification(String type, Object source, long sequenceNumber, ObjectName objectName)
Creates an MBeanServerNotification object specifying object names of the MBeans that caused the notification and the specified notification type.

param
type A string denoting the type of the notification. Set it to one these values: {@link #REGISTRATION_NOTIFICATION}, {@link #UNREGISTRATION_NOTIFICATION}.
param
source The MBeanServerNotification object responsible for forwarding MBean server notification.
param
sequenceNumber A sequence number that can be used to order received notifications.
param
objectName The object name of the MBean that caused the notification.

     

                                                                                                
                
	 super (type,source,sequenceNumber) ;
	 this.objectName =  objectName ;
     
Methods Summary
public javax.management.ObjectNamegetMBeanName()
Returns the object name of the MBean that caused the notification.

return
the object name of the MBean that caused the notification.

 
	 return objectName ;