org.apache.qpid.management.jmx
Class EntityLifecycleNotification

java.lang.Object
  extended by java.util.EventObject
      extended by javax.management.Notification
          extended by org.apache.qpid.management.jmx.EntityLifecycleNotification
All Implemented Interfaces:
Serializable

public class EntityLifecycleNotification
extends Notification

Q-Man JMX entity lifecycle notification. A notification is sent to interested listener by Q-Man on the following scenarios :
- A schema (class / event) has been requested (Schema request);
- A schema (class / event) has been injected (Schema response);
- A schema cannot be parsed (probably it is malformed);
- An object instance has been created (Instrumentation / Configuration response);
- An event instance has been created (Instrumentation / Configuration response);
- An object instance has been removed (Instrumentation / Configuration response);

See Also:
Serialized Form

Field Summary
static String INSTANCE_ADDED_NOTIFICATION_TYPE
           
static String INSTANCE_REMOVED_NOTIFICATION_TYPE
           
static String MALFORMED_SCHEMA_NOTIFICATION_TYPE
           
static String SCHEMA_INJECTED_NOTIFICATION_TYPE
           
static String SCHEMA_REQUESTED_NOTIFICATION_TYPE
           
 
Fields inherited from class javax.management.Notification
source
 
Constructor Summary
EntityLifecycleNotification(String type, String packageName, String className, String classKind, ObjectName objectName)
          Builds a new notification with the given parameters.
 
Method Summary
 String getClassKind()
          Returns the class kind of object contained in this notification.
 String getClassName()
          Returns the class name of object contained in this notification.
 ObjectName getObjectName()
          Returns the object name of object contained in this notification.
 String getPackageName()
          Returns the package name of object contained in this notification.
 String toString()
          Returns a string representation of this notification.
 
Methods inherited from class javax.management.Notification
getMessage, getSequenceNumber, getTimeStamp, getType, getUserData, setSequenceNumber, setSource, setTimeStamp, setUserData
 
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

SCHEMA_INJECTED_NOTIFICATION_TYPE

public static final String SCHEMA_INJECTED_NOTIFICATION_TYPE
See Also:
Constant Field Values

SCHEMA_REQUESTED_NOTIFICATION_TYPE

public static final String SCHEMA_REQUESTED_NOTIFICATION_TYPE
See Also:
Constant Field Values

MALFORMED_SCHEMA_NOTIFICATION_TYPE

public static final String MALFORMED_SCHEMA_NOTIFICATION_TYPE
See Also:
Constant Field Values

INSTANCE_ADDED_NOTIFICATION_TYPE

public static final String INSTANCE_ADDED_NOTIFICATION_TYPE
See Also:
Constant Field Values

INSTANCE_REMOVED_NOTIFICATION_TYPE

public static final String INSTANCE_REMOVED_NOTIFICATION_TYPE
See Also:
Constant Field Values
Constructor Detail

EntityLifecycleNotification

public EntityLifecycleNotification(String type,
                                   String packageName,
                                   String className,
                                   String classKind,
                                   ObjectName objectName)
Builds a new notification with the given parameters.

Parameters:
type - the notification type.
sequenceNumber - the sequence number.
packageName - the package name.
className - the class name.
classKind - the class kind (i.e. class or event)
objectName - the object name of the affected mbean.
Method Detail

getPackageName

public String getPackageName()
Returns the package name of object contained in this notification.

Returns:
the package name of object contained in this notification.

getClassName

public String getClassName()
Returns the class name of object contained in this notification.

Returns:
the class name of object contained in this notification.

getClassKind

public String getClassKind()
Returns the class kind of object contained in this notification.

Returns:
the class kind of object contained in this notification.
See Also:
Names.CLASS, Names.EVENT

getObjectName

public ObjectName getObjectName()
Returns the object name of object contained in this notification.

Returns:
the object name of object contained in this notification.

toString

public String toString()
Returns a string representation of this notification.

Overrides:
toString in class Notification
Returns:
a string representation of this notification.


Licensed to the Apache Software Foundation