API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.management.relation. RelationNotification View Source
Author(s)
Since
1.5
Version
Serial
Hierarchy
 Object
      EventObject
          Notification
              RelationNotification
Implements
Subclasses
Description
public class RelationNotification
  A notification of a change in the Relation Service.
See also:   
Constructors
public RelationNotification (String notifType, Object sourceObj, long sequence, long timeStamp, String message, String id, String typeName, ObjectName objectName, List<ObjectName> unregMBeanList) throws IllegalArgumentException
  Creates a notification for either a relation creation (RelationSupport object created internally in the Relation Service, or an MBean added as a relation) or for a relation removal from the Relation Service.
public RelationNotification (String notifType, Object sourceObj, long sequence, long timeStamp, String message, String id, String typeName, ObjectName objectName, String name, List<ObjectName> newValue, List<ObjectName> oldValue) throws IllegalArgumentException
  Creates a notification for a role update in a relation.
Methods
Hide/Show inherited methods
public List<ObjectName> getMBeansToUnregister ()
  Returns the list of ObjectNames of MBeans expected to be unregistered due to a relation removal (only for relation removal).
public String getMessage () [Inherited From Notification]
  Get the notification message.
public List<ObjectName> getNewRoleValue ()
  Returns new value of updated role (only for role update).
public ObjectName getObjectName ()
  Returns the ObjectName of the created/removed/updated relation.
public List<ObjectName> getOldRoleValue ()
  Returns old value of updated role (only for role update).
public String getRelationId ()
  Returns the relation identifier of created/removed/updated relation.
public String getRelationTypeName ()
  Returns the relation type name of created/removed/updated relation.
public String getRoleName ()
  Returns name of updated role of updated relation (only for role update).
public long getSequenceNumber () [Inherited From Notification]
  Get the notification sequence number.
public Object getSource () [Inherited From EventObject]
  The object on which the Event initially occurred.
public long getTimeStamp () [Inherited From Notification]
  Get the notification timestamp.
public String getType () [Inherited From Notification]
  Get the notification type.
public Object getUserData () [Inherited From Notification]
  Get the user data.
public void setSequenceNumber (long sequenceNumber) [Inherited From Notification]
  Set the notification sequence number.
public void setSource (Object source) [Inherited From Notification]
  Sets the source.
public void setTimeStamp (long timeStamp) [Inherited From Notification]
  Set the notification timestamp.
public void setUserData (Object userData) [Inherited From Notification]
  Set the user data.
public String toString () [Inherited From Notification]
  Returns a String representation of this notification.
Fields
Hide/Show inherited fields
publicfinalstatic String RELATION_BASIC_CREATION = "jmx.relation.creation.basic"
Type for the creation of an internal relation.
publicfinalstatic String RELATION_BASIC_REMOVAL = "jmx.relation.removal.basic"
Type for the removal from the Relation Service of an internal relation.
publicfinalstatic String RELATION_BASIC_UPDATE = "jmx.relation.update.basic"
Type for an update of an internal relation.
publicfinalstatic String RELATION_MBEAN_CREATION = "jmx.relation.creation.mbean"
Type for the relation MBean added into the Relation Service.
publicfinalstatic String RELATION_MBEAN_REMOVAL = "jmx.relation.removal.mbean"
Type for the removal from the Relation Service of a relation MBean.
publicfinalstatic String RELATION_MBEAN_UPDATE = "jmx.relation.update.mbean"
Type for the update of a relation MBean.
protected Object source [Inherited From Notification]
  This field hides the EventObject.source field in the parent class to make it non-transient and therefore part of the serialized form.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar