Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

javax.management
Class MBeanServerNotification  view MBeanServerNotification download MBeanServerNotification.java

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

public class MBeanServerNotification
extends Notification

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:

  • Serialization

Version:
$Revision: 1.2.6.1 $

Field Summary
private  ObjectName objectName
          The object name of the mbean being (un)registered
static java.lang.String REGISTRATION_NOTIFICATION
          Notification type sent at MBean registration
private static long serialVersionUID
           
static java.lang.String UNREGISTRATION_NOTIFICATION
          Notification type sent at MBean registration
 
Fields inherited from class javax.management.Notification
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
MBeanServerNotification(java.lang.String type, java.lang.Object source, long sequence, ObjectName objectName)
          Construct a new MBeanServer notification
 
Method Summary
 ObjectName getMBeanName()
          Get the object name of the mbean being (un)registered
 java.lang.String toString()
          Converts the event to a String.
 
Methods inherited from class javax.management.Notification
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

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

REGISTRATION_NOTIFICATION

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

See Also:
Constant Field Values

UNREGISTRATION_NOTIFICATION

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

See Also:
Constant Field Values

objectName

private ObjectName objectName
The object name of the mbean being (un)registered

Constructor Detail

MBeanServerNotification

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

Method Detail

getMBeanName

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


toString

public java.lang.String toString()
Description copied from class: java.util.EventObject
Converts the event to a String. The format is not specified, but by observation, the JDK uses: getClass().getName() + "[source=" + source + "]";.

Overrides:
toString in class Notification