javax.management.relation
Class RelationNotification

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.relation.RelationNotification
All Implemented Interfaces:
Serializable sample code for java.io.Serializable definition code for java.io.Serializable

public class RelationNotification
extends Notification sample code for javax.management.Notification definition code for javax.management.Notification

A notification of a change in the Relation Service. A RelationNotification notification is sent when a relation is created via the Relation Service, or an MBean is added as a relation in the Relation Service, or a role is updated in a relation, or a relation is removed from the Relation Service.

Since:
1.5
See Also:
Serialized Form

Field Summary
static String sample code for java.lang.String definition code for java.lang.String RELATION_BASIC_CREATION sample code for javax.management.relation.RelationNotification.RELATION_BASIC_CREATION definition code for javax.management.relation.RelationNotification.RELATION_BASIC_CREATION
          Type for the creation of an internal relation.
static String sample code for java.lang.String definition code for java.lang.String RELATION_BASIC_REMOVAL sample code for javax.management.relation.RelationNotification.RELATION_BASIC_REMOVAL definition code for javax.management.relation.RelationNotification.RELATION_BASIC_REMOVAL
          Type for the removal from the Relation Service of an internal relation.
static String sample code for java.lang.String definition code for java.lang.String RELATION_BASIC_UPDATE sample code for javax.management.relation.RelationNotification.RELATION_BASIC_UPDATE definition code for javax.management.relation.RelationNotification.RELATION_BASIC_UPDATE
          Type for an update of an internal relation.
static String sample code for java.lang.String definition code for java.lang.String RELATION_MBEAN_CREATION sample code for javax.management.relation.RelationNotification.RELATION_MBEAN_CREATION definition code for javax.management.relation.RelationNotification.RELATION_MBEAN_CREATION
          Type for the relation MBean added into the Relation Service.
static String sample code for java.lang.String definition code for java.lang.String RELATION_MBEAN_REMOVAL sample code for javax.management.relation.RelationNotification.RELATION_MBEAN_REMOVAL definition code for javax.management.relation.RelationNotification.RELATION_MBEAN_REMOVAL
          Type for the removal from the Relation Service of a relation MBean.
static String sample code for java.lang.String definition code for java.lang.String RELATION_MBEAN_UPDATE sample code for javax.management.relation.RelationNotification.RELATION_MBEAN_UPDATE definition code for javax.management.relation.RelationNotification.RELATION_MBEAN_UPDATE
          Type for the update of a relation MBean.
 
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
RelationNotification sample code for javax.management.relation.RelationNotification.RelationNotification(java.lang.String, java.lang.Object, long, long, java.lang.String, java.lang.String, java.lang.String, javax.management.ObjectName, java.util.List) definition code for javax.management.relation.RelationNotification.RelationNotification(java.lang.String, java.lang.Object, long, long, java.lang.String, java.lang.String, java.lang.String, javax.management.ObjectName, java.util.List) (String sample code for java.lang.String definition code for java.lang.String  theNtfType, Object sample code for java.lang.Object definition code for java.lang.Object  theSrcObj, long TheSeqNbr, long theTimeStamp, String sample code for java.lang.String definition code for java.lang.String  theMsg, String sample code for java.lang.String definition code for java.lang.String  theRelId, String sample code for java.lang.String definition code for java.lang.String  theRelTypeName, ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName  theRelObjName, List sample code for java.util.List definition code for java.util.List  theUnregMBeanList)
          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.
RelationNotification sample code for javax.management.relation.RelationNotification.RelationNotification(java.lang.String, java.lang.Object, long, long, java.lang.String, java.lang.String, java.lang.String, javax.management.ObjectName, java.lang.String, java.util.List, java.util.List) definition code for javax.management.relation.RelationNotification.RelationNotification(java.lang.String, java.lang.Object, long, long, java.lang.String, java.lang.String, java.lang.String, javax.management.ObjectName, java.lang.String, java.util.List, java.util.List) (String sample code for java.lang.String definition code for java.lang.String  theNtfType, Object sample code for java.lang.Object definition code for java.lang.Object  theSrcObj, long TheSeqNbr, long theTimeStamp, String sample code for java.lang.String definition code for java.lang.String  theMsg, String sample code for java.lang.String definition code for java.lang.String  theRelId, String sample code for java.lang.String definition code for java.lang.String  theRelTypeName, ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName  theRelObjName, String sample code for java.lang.String definition code for java.lang.String  theRoleName, List sample code for java.util.List definition code for java.util.List  theNewRoleValue, List sample code for java.util.List definition code for java.util.List  theOldRoleValue)
          Creates a notification for a role update in a relation.
 
Method Summary
 List sample code for java.util.List definition code for java.util.List getMBeansToUnregister sample code for javax.management.relation.RelationNotification.getMBeansToUnregister() definition code for javax.management.relation.RelationNotification.getMBeansToUnregister() ()
          Returns the list of ObjectNames of MBeans expected to be unregistered due to a relation removal (only for relation removal).
 List sample code for java.util.List definition code for java.util.List getNewRoleValue sample code for javax.management.relation.RelationNotification.getNewRoleValue() definition code for javax.management.relation.RelationNotification.getNewRoleValue() ()
          Returns new value of updated role (only for role update).
 ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName getObjectName sample code for javax.management.relation.RelationNotification.getObjectName() definition code for javax.management.relation.RelationNotification.getObjectName() ()
          Returns the ObjectName of the created/removed/updated relation.
 List sample code for java.util.List definition code for java.util.List getOldRoleValue sample code for javax.management.relation.RelationNotification.getOldRoleValue() definition code for javax.management.relation.RelationNotification.getOldRoleValue() ()
          Returns old value of updated role (only for role update).
 String sample code for java.lang.String definition code for java.lang.String getRelationId sample code for javax.management.relation.RelationNotification.getRelationId() definition code for javax.management.relation.RelationNotification.getRelationId() ()
          Returns the relation identifier of created/removed/updated relation.
 String sample code for java.lang.String definition code for java.lang.String getRelationTypeName sample code for javax.management.relation.RelationNotification.getRelationTypeName() definition code for javax.management.relation.RelationNotification.getRelationTypeName() ()
          Returns the relation type name of created/removed/updated relation.
 String sample code for java.lang.String definition code for java.lang.String getRoleName sample code for javax.management.relation.RelationNotification.getRoleName() definition code for javax.management.relation.RelationNotification.getRoleName() ()
          Returns name of updated role of updated relation (only for role update).
 
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

RELATION_BASIC_CREATION sample code for javax.management.relation.RelationNotification.RELATION_BASIC_CREATION

public static final String sample code for java.lang.String definition code for java.lang.String  RELATION_BASIC_CREATION
Type for the creation of an internal relation.

See Also:
Constant Field Values

RELATION_MBEAN_CREATION sample code for javax.management.relation.RelationNotification.RELATION_MBEAN_CREATION

public static final String sample code for java.lang.String definition code for java.lang.String  RELATION_MBEAN_CREATION
Type for the relation MBean added into the Relation Service.

See Also:
Constant Field Values

RELATION_BASIC_UPDATE sample code for javax.management.relation.RelationNotification.RELATION_BASIC_UPDATE

public static final String sample code for java.lang.String definition code for java.lang.String  RELATION_BASIC_UPDATE
Type for an update of an internal relation.

See Also:
Constant Field Values

RELATION_MBEAN_UPDATE sample code for javax.management.relation.RelationNotification.RELATION_MBEAN_UPDATE

public static final String sample code for java.lang.String definition code for java.lang.String  RELATION_MBEAN_UPDATE
Type for the update of a relation MBean.

See Also:
Constant Field Values

RELATION_BASIC_REMOVAL sample code for javax.management.relation.RelationNotification.RELATION_BASIC_REMOVAL

public static final String sample code for java.lang.String definition code for java.lang.String  RELATION_BASIC_REMOVAL
Type for the removal from the Relation Service of an internal relation.

See Also:
Constant Field Values

RELATION_MBEAN_REMOVAL sample code for javax.management.relation.RelationNotification.RELATION_MBEAN_REMOVAL

public static final String sample code for java.lang.String definition code for java.lang.String  RELATION_MBEAN_REMOVAL
Type for the removal from the Relation Service of a relation MBean.

See Also:
Constant Field Values
Constructor Detail

RelationNotification sample code for javax.management.relation.RelationNotification(java.lang.String, java.lang.Object, long, long, java.lang.String, java.lang.String, java.lang.String, javax.management.ObjectName, java.util.List) definition code for javax.management.relation.RelationNotification(java.lang.String, java.lang.Object, long, long, java.lang.String, java.lang.String, java.lang.String, javax.management.ObjectName, java.util.List)

public RelationNotification(String sample code for java.lang.String definition code for java.lang.String  theNtfType,
                            Object sample code for java.lang.Object definition code for java.lang.Object  theSrcObj,
                            long TheSeqNbr,
                            long theTimeStamp,
                            String sample code for java.lang.String definition code for java.lang.String  theMsg,
                            String sample code for java.lang.String definition code for java.lang.String  theRelId,
                            String sample code for java.lang.String definition code for java.lang.String  theRelTypeName,
                            ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName  theRelObjName,
                            List sample code for java.util.List definition code for java.util.List  theUnregMBeanList)
                     throws IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.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.

Parameters:
theNtfType - type of the notification; either:

- RELATION_BASIC_CREATION

- RELATION_MBEAN_CREATION

- RELATION_BASIC_REMOVAL

- RELATION_MBEAN_REMOVAL

theSrcObj - source object, sending the notification. Will always be a RelationService object.
TheSeqNbr - sequence number to identify the notification
theTimeStamp - time stamp
theMsg - human-readable message describing the notification
theRelId - relation id identifying the relation in the Relation Service
theRelTypeName - name of the relation type
theRelObjName - ObjectName of the relation object if it is an MBean (null for relations internally handled by the Relation Service)
theUnregMBeanList - list of ObjectNames of referenced MBeans expected to be unregistered due to relation removal (only for removal, due to CIM qualifiers, can be null)
Throws:
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if:

- no value for the notification type

- the notification type is not RELATION_BASIC_CREATION, RELATION_MBEAN_CREATION, RELATION_BASIC_REMOVAL or RELATION_MBEAN_REMOVAL

- no source object

- the source object is not a Relation Service

- no relation id

- no relation type name


RelationNotification sample code for javax.management.relation.RelationNotification(java.lang.String, java.lang.Object, long, long, java.lang.String, java.lang.String, java.lang.String, javax.management.ObjectName, java.lang.String, java.util.List, java.util.List) definition code for javax.management.relation.RelationNotification(java.lang.String, java.lang.Object, long, long, java.lang.String, java.lang.String, java.lang.String, javax.management.ObjectName, java.lang.String, java.util.List, java.util.List)

public RelationNotification(String sample code for java.lang.String definition code for java.lang.String  theNtfType,
                            Object sample code for java.lang.Object definition code for java.lang.Object  theSrcObj,
                            long TheSeqNbr,
                            long theTimeStamp,
                            String sample code for java.lang.String definition code for java.lang.String  theMsg,
                            String sample code for java.lang.String definition code for java.lang.String  theRelId,
                            String sample code for java.lang.String definition code for java.lang.String  theRelTypeName,
                            ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName  theRelObjName,
                            String sample code for java.lang.String definition code for java.lang.String  theRoleName,
                            List sample code for java.util.List definition code for java.util.List  theNewRoleValue,
                            List sample code for java.util.List definition code for java.util.List  theOldRoleValue)
                     throws IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException 
Creates a notification for a role update in a relation.

Parameters:
theNtfType - type of the notification; either:

- RELATION_BASIC_UPDATE

- RELATION_MBEAN_UPDATE

theSrcObj - source object, sending the notification. Will always be a RelationService object.
TheSeqNbr - sequence number to identify the notification
theTimeStamp - time stamp
theMsg - human-readable message describing the notification
theRelId - relation id identifying the relation in the Relation Service
theRelTypeName - name of the relation type
theRelObjName - ObjectName of the relation object if it is an MBean (null for relations internally handled by the Relation Service)
theRoleName - name of the updated role
theNewRoleValue - new value (List of ObjectName objects)
theOldRoleValue - old value (List of ObjectName objects)
Throws:
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if null parameter
Method Detail

getRelationId sample code for javax.management.relation.RelationNotification.getRelationId() definition code for javax.management.relation.RelationNotification.getRelationId()

public String sample code for java.lang.String definition code for java.lang.String  getRelationId()
Returns the relation identifier of created/removed/updated relation.

Returns:
the relation id.

getRelationTypeName sample code for javax.management.relation.RelationNotification.getRelationTypeName() definition code for javax.management.relation.RelationNotification.getRelationTypeName()

public String sample code for java.lang.String definition code for java.lang.String  getRelationTypeName()
Returns the relation type name of created/removed/updated relation.

Returns:
the relation type name.

getObjectName sample code for javax.management.relation.RelationNotification.getObjectName() definition code for javax.management.relation.RelationNotification.getObjectName()

public ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName  getObjectName()
Returns the ObjectName of the created/removed/updated relation.

Returns:
the ObjectName if the relation is an MBean, otherwise null.

getMBeansToUnregister sample code for javax.management.relation.RelationNotification.getMBeansToUnregister() definition code for javax.management.relation.RelationNotification.getMBeansToUnregister()

public List sample code for java.util.List definition code for java.util.List  getMBeansToUnregister()
Returns the list of ObjectNames of MBeans expected to be unregistered due to a relation removal (only for relation removal).

Returns:
a List sample code for java.util.List definition code for java.util.List of ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName .

getRoleName sample code for javax.management.relation.RelationNotification.getRoleName() definition code for javax.management.relation.RelationNotification.getRoleName()

public String sample code for java.lang.String definition code for java.lang.String  getRoleName()
Returns name of updated role of updated relation (only for role update).

Returns:
the name of the updated role.

getOldRoleValue sample code for javax.management.relation.RelationNotification.getOldRoleValue() definition code for javax.management.relation.RelationNotification.getOldRoleValue()

public List sample code for java.util.List definition code for java.util.List  getOldRoleValue()
Returns old value of updated role (only for role update).

Returns:
the old value of the updated role.

getNewRoleValue sample code for javax.management.relation.RelationNotification.getNewRoleValue() definition code for javax.management.relation.RelationNotification.getNewRoleValue()

public List sample code for java.util.List definition code for java.util.List  getNewRoleValue()
Returns new value of updated role (only for role update).

Returns:
the new value of the updated role.