|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.EventObject | +--javax.management.Notification | +--javax.management.relation.RelationNotification
A RelationNotification notification is sent when a relation is created via the Relation Service, or a 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 java.lang.String |
RELATION_BASIC_CREATION
Type for the creation of an internal relation |
static java.lang.String |
RELATION_BASIC_REMOVAL
Type for the removal from the Relation Service of an internal relation |
static java.lang.String |
RELATION_BASIC_UPDATE
Type for an update of an internal relation |
static java.lang.String |
RELATION_MBEAN_CREATION
Type for the relation MBean added into the Relation Service |
static java.lang.String |
RELATION_MBEAN_REMOVAL
Type for the removal from the Relation Service of a relation MBean |
static java.lang.String |
RELATION_MBEAN_UPDATE
Type for the update of a relation MBean |
Fields inherited from class javax.management.Notification |
source |
Fields inherited from class java.util.EventObject |
source |
Constructor Summary | |
RelationNotification(java.lang.String theNtfType,
java.lang.Object theSrcObj,
long TheSeqNbr,
long theTimeStamp,
java.lang.String theMsg,
java.lang.String theRelId,
java.lang.String theRelTypeName,
ObjectName theRelObjName,
java.util.List theUnregMBeanList)
Creates a notification for either a relation creation (RelationSupport object created internally in the Relation Service, or a MBean added as a relation) or for a relation removal from the Relation Service |
|
RelationNotification(java.lang.String theNtfType,
java.lang.Object theSrcObj,
long TheSeqNbr,
long theTimeStamp,
java.lang.String theMsg,
java.lang.String theRelId,
java.lang.String theRelTypeName,
ObjectName theRelObjName,
java.lang.String theRoleName,
java.util.List theNewRoleValue,
java.util.List theOldRoleValue)
Creates a notification for a role update in a relation |
Method Summary | |
java.util.List |
getMBeansToUnregister()
Returns the list of ObjectNames of MBeans expected to be unregistered due to a relation removal (only for relation removal) |
java.util.List |
getNewRoleValue()
Returns new value of updated role (only for role update) |
ObjectName |
getObjectName()
Returns the ObjectName (if the relation is a MBean, else null) of the created/removed/updated relation |
java.util.List |
getOldRoleValue()
Returns old value of updated role (only for role update) |
java.lang.String |
getRelationId()
Returns the relation identifier of created/removed/updated relation |
java.lang.String |
getRelationTypeName()
Returns the relation type name of created/removed/updated relation |
java.lang.String |
getRoleName()
Returns name of updated role of updated relation (only for role update) |
Methods inherited from class javax.management.Notification |
getMessage,
getSequenceNumber,
getSource,
getTimeStamp,
getType,
getUserData,
setSequenceNumber,
setSource,
setTimeStamp,
setUserData |
Methods inherited from class java.util.EventObject |
toString |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static final java.lang.String RELATION_BASIC_CREATION
public static final java.lang.String RELATION_MBEAN_CREATION
public static final java.lang.String RELATION_BASIC_UPDATE
public static final java.lang.String RELATION_MBEAN_UPDATE
public static final java.lang.String RELATION_BASIC_REMOVAL
public static final java.lang.String RELATION_MBEAN_REMOVAL
Constructor Detail |
public RelationNotification(java.lang.String theNtfType, java.lang.Object theSrcObj, long TheSeqNbr, long theTimeStamp, java.lang.String theMsg, java.lang.String theRelId, java.lang.String theRelTypeName, ObjectName theRelObjName, java.util.List theUnregMBeanList) throws java.lang.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 a 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)- 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(java.lang.String theNtfType, java.lang.Object theSrcObj, long TheSeqNbr, long theTimeStamp, java.lang.String theMsg, java.lang.String theRelId, java.lang.String theRelTypeName, ObjectName theRelObjName, java.lang.String theRoleName, java.util.List theNewRoleValue, java.util.List theOldRoleValue) throws java.lang.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 a MBean
(null for relations internally handled by the
Relation Service)theRoleName
- name of the updated roletheNewRoleValue
- new value (ArrayList of ObjectName objects)theOldRoleValue
- old value (ArrayList of ObjectName objects)Method Detail |
public java.lang.String getRelationId()
public java.lang.String getRelationTypeName()
public ObjectName getObjectName()
public java.util.List getMBeansToUnregister()
public java.lang.String getRoleName()
public java.util.List getOldRoleValue()
public java.util.List getNewRoleValue()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |