|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
javax.management.Notification (src)
javax.management.relation.RelationNotification
A notification from the relation service.
Field Summary | |
static java.lang.String |
RELATION_BASIC_CREATION
Creation of an internal relation. |
static java.lang.String |
RELATION_BASIC_REMOVAL
Removal of an internal relation. |
static java.lang.String |
RELATION_BASIC_UPDATE
Update of an internal relation. |
static java.lang.String |
RELATION_MBEAN_CREATION
Creation of MBean relation added to the relation service. |
static java.lang.String |
RELATION_MBEAN_REMOVAL
Removal of MBean relation added to the relation service. |
static java.lang.String |
RELATION_MBEAN_UPDATE
Update of MBean relation added to the relation service. |
Fields inherited from class java.util.EventObject |
source |
Constructor Summary | |
RelationNotification(java.lang.String type,
java.lang.Object source,
long sequenceNumber,
long timeStamp,
java.lang.String message,
java.lang.String relationId,
java.lang.String relTypeName,
ObjectName (src) relObjName,
java.util.List unregMBeans)
Construct a new relation notification for a creation or removal. |
|
RelationNotification(java.lang.String type,
java.lang.Object source,
long sequenceNumber,
long timeStamp,
java.lang.String message,
java.lang.String relationId,
java.lang.String relTypeName,
ObjectName (src) relObjName,
java.lang.String roleName,
java.util.List newRoleValue,
java.util.List oldRoleValue)
Construct a new relation notification for an update. |
Method Summary | |
java.util.List |
getMBeansToUnregister()
Retrieves a list of Object names of the mbeans that will be removed from the relation service because of a relation's removal. |
java.util.List |
getNewRoleValue()
Retrieves the new list of object names in the role. |
ObjectName (src) |
getObjectName()
Retrieves the object name of the mbean (null for an internal relation). |
java.util.List |
getOldRoleValue()
Retrieves the old list of object names in the role. |
java.lang.String |
getRelationId()
Retrieves the relation id of this notification. |
java.lang.String |
getRelationTypeName()
Retrieves the relation type name of this notification. |
java.lang.String |
getRoleName()
Retrieves the role name of an updated role, only for role updates. |
Methods inherited from class javax.management.Notification (src) |
getMessage, getSequenceNumber, getSource, getTimeStamp, getType, getUserData, setSequenceNumber, setSource, setTimeStamp, setUserData, 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_BASIC_REMOVAL
public static final java.lang.String RELATION_BASIC_UPDATE
public static final java.lang.String RELATION_MBEAN_CREATION
public static final java.lang.String RELATION_MBEAN_REMOVAL
public static final java.lang.String RELATION_MBEAN_UPDATE
Constructor Detail |
public RelationNotification(java.lang.String type, java.lang.Object source, long sequenceNumber, long timeStamp, java.lang.String message, java.lang.String relationId, java.lang.String relTypeName, ObjectName (src) relObjName, java.util.List unregMBeans) throws java.lang.IllegalArgumentException
The notification type should be one RELATION_BASIC_CREATION
,
RELATION_BASIC_REMOVAL
, RELATION_MBEAN_CREATION
or
RELATION_MBEAN_REMOVAL
.
The relation type cannot be null, the source cannot be null and it must be a relation service, the relation id cannot be null, the relation type name cannot null.
type
- the notification type.source
- the object sending the notification (always the
the relation service).sequenceNumber
- the number identifying the notificationtimeStamp
- the time of the notificationmessage
- human readable stringrelationId
- the relation idrelTypeName
- the relation type namerelObjName
- the relation MBean object name (null
for internal relations)unregMBeans
- the list of object names of mbeans to be
unregistered from the relation service because of a relation
removal. Only relevant for removals, can be null.
java.lang.IllegalArgumentException
- for null or invalid parameters.public RelationNotification(java.lang.String type, java.lang.Object source, long sequenceNumber, long timeStamp, java.lang.String message, java.lang.String relationId, java.lang.String relTypeName, ObjectName (src) relObjName, java.lang.String roleName, java.util.List newRoleValue, java.util.List oldRoleValue) throws java.lang.IllegalArgumentException
The notification type should be one RELATION_BASIC_UPDATE
,
RELATION_MBEAN_UPDATE
The relation type cannot be null, the source cannot be null and it
must be a relation service, the relation id cannot be null, the
relation type name cannot null.
type
- the notification type.source
- the object sending the notification (always the
the relation service).sequenceNumber
- the number identifying the notificationtimeStamp
- the time of the notificationmessage
- human readable stringrelationId
- the relation idrelTypeName
- the relation type namerelObjName
- the relation MBean object name (null
for internal relations)roleName
- the role namenewRoleValue
- the new value of the role
java.lang.IllegalArgumentException
- for null or invalid parameters.Method Detail |
public java.util.List getMBeansToUnregister()
public java.util.List getNewRoleValue()
public ObjectName (src) getObjectName()
public java.util.List getOldRoleValue()
public java.lang.String getRelationId()
public java.lang.String getRelationTypeName()
public java.lang.String getRoleName()
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |