|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object![]()
![]()
![]()
java.util.EventObject
![]()
![]()
![]()
javax.management.Notification
![]()
![]()
![]()
javax.management.relation.RelationNotification

public class RelationNotification

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.
| Field Summary | |
|---|---|
static String |
RELATION_BASIC_CREATION
Type for the creation of an internal relation. |
static String |
RELATION_BASIC_REMOVAL
Type for the removal from the Relation Service of an internal relation. |
static String |
RELATION_BASIC_UPDATE
Type for an update of an internal relation. |
static String |
RELATION_MBEAN_CREATION
Type for the relation MBean added into the Relation Service. |
static String |
RELATION_MBEAN_REMOVAL
Type for the removal from the Relation Service of a relation MBean. |
static String |
RELATION_MBEAN_UPDATE
Type for the update of a relation MBean. |
Fields inherited from class javax.management.Notification ![]() |
|---|
source |
| Constructor Summary | |
|---|---|
RelationNotification
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
Creates a notification for a role update in a relation. |
|
| Method Summary | |
|---|---|
List |
getMBeansToUnregister
Returns the list of ObjectNames of MBeans expected to be unregistered due to a relation removal (only for relation removal). |
List |
getNewRoleValue
Returns new value of updated role (only for role update). |
ObjectName |
getObjectName
Returns the ObjectName of the created/removed/updated relation. |
List |
getOldRoleValue
Returns old value of updated role (only for role update). |
String |
getRelationId
Returns the relation identifier of created/removed/updated relation. |
String |
getRelationTypeName
Returns the relation type name of created/removed/updated relation. |
String |
getRoleName
Returns name of updated role of updated relation (only for role update). |
Methods inherited from class javax.management.Notification ![]() |
|---|
getMessage |
Methods inherited from class java.util.EventObject ![]() |
|---|
getSource |
Methods inherited from class java.lang.Object ![]() |
|---|
clone |
| Field Detail |
|---|

public static final String![]()
![]()
RELATION_BASIC_CREATION

public static final String![]()
![]()
RELATION_MBEAN_CREATION

public static final String![]()
![]()
RELATION_BASIC_UPDATE

public static final String![]()
![]()
RELATION_MBEAN_UPDATE

public static final String![]()
![]()
RELATION_BASIC_REMOVAL

public static final String![]()
![]()
RELATION_MBEAN_REMOVAL
| Constructor Detail |
|---|

public RelationNotification(String![]()
![]()
theNtfType, Object
![]()
![]()
theSrcObj, long TheSeqNbr, long theTimeStamp, String
![]()
![]()
theMsg, String
![]()
![]()
theRelId, String
![]()
![]()
theRelTypeName, ObjectName
![]()
![]()
theRelObjName, List
![]()
![]()
theUnregMBeanList) throws IllegalArgumentException
![]()
![]()
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 notificationtheTimeStamp - time stamptheMsg - human-readable message describing the notificationtheRelId - relation id identifying the relation in the Relation
ServicetheRelTypeName - name of the relation typetheRelObjName - 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)
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

public RelationNotification(String![]()
![]()
theNtfType, Object
![]()
![]()
theSrcObj, long TheSeqNbr, long theTimeStamp, String
![]()
![]()
theMsg, String
![]()
![]()
theRelId, String
![]()
![]()
theRelTypeName, ObjectName
![]()
![]()
theRelObjName, String
![]()
![]()
theRoleName, List
![]()
![]()
theNewRoleValue, List
![]()
![]()
theOldRoleValue) throws IllegalArgumentException
![]()
![]()
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 notificationtheTimeStamp - time stamptheMsg - human-readable message describing the notificationtheRelId - relation id identifying the relation in the Relation
ServicetheRelTypeName - name of the relation typetheRelObjName - ObjectName of the relation object if it is an MBean
(null for relations internally handled by the Relation Service)theRoleName - name of the updated roletheNewRoleValue - new value (List of ObjectName objects)theOldRoleValue - old value (List of ObjectName objects)
IllegalArgumentException

- if null parameter| Method Detail |
|---|

public String![]()
![]()
getRelationId()

public String![]()
![]()
getRelationTypeName()

public ObjectName![]()
![]()
getObjectName()

public List![]()
![]()
getMBeansToUnregister()
List
of ObjectName
.

public String![]()
![]()
getRoleName()

public List![]()
![]()
getOldRoleValue()

public List![]()
![]()
getNewRoleValue()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||