|
|||||||||||
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
A notification from the relation service.
Revisions:
20020715 Adrian Brock:
Field Summary | |
static String |
RELATION_BASIC_CREATION
Creation of an internal relation. |
static String |
RELATION_BASIC_REMOVAL
Removal of an internal relation. |
static String |
RELATION_BASIC_UPDATE
Update of an internal relation. |
static String |
RELATION_MBEAN_CREATION
Creation of MBean relation added to the relation service. |
static String |
RELATION_MBEAN_REMOVAL
Removal of MBean relation added to the relation service. |
static String |
RELATION_MBEAN_UPDATE
Update of MBean relation added to the relation service. |
Fields inherited from class java.util.EventObject |
source |
Constructor Summary | |
RelationNotification(String type,
Object source,
long sequenceNumber,
long timeStamp,
String message,
String relationId,
String relTypeName,
ObjectName relObjName,
List unregMBeans)
Construct a new relation notification for a creation or removal. |
|
RelationNotification(String type,
Object source,
long sequenceNumber,
long timeStamp,
String message,
String relationId,
String relTypeName,
ObjectName relObjName,
String roleName,
List newRoleValue,
List oldRoleValue)
Construct a new relation notification for an update. |
Method Summary | |
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. |
List |
getNewRoleValue()
Retrieves the new list of object names in the role. |
ObjectName |
getObjectName()
Retrieves the object name of the mbean (null for an internal relation). |
List |
getOldRoleValue()
Retrieves the old list of object names in the role. |
String |
getRelationId()
Retrieves the relation id of this notification. |
String |
getRelationTypeName()
Retrieves the relation type name of this notification. |
String |
getRoleName()
Retrieves the role name of an updated role, only for role updates. |
Methods inherited from class javax.management.Notification |
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 String RELATION_BASIC_CREATION
public static final String RELATION_BASIC_REMOVAL
public static final String RELATION_BASIC_UPDATE
public static final String RELATION_MBEAN_CREATION
public static final String RELATION_MBEAN_REMOVAL
public static final String RELATION_MBEAN_UPDATE
Constructor Detail |
public RelationNotification(String type, Object source, long sequenceNumber, long timeStamp, String message, String relationId, String relTypeName, ObjectName relObjName, List unregMBeans) throws 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.
IllegalArgumentException
- for null or invalid parameters.public RelationNotification(String type, Object source, long sequenceNumber, long timeStamp, String message, String relationId, String relTypeName, ObjectName relObjName, String roleName, List newRoleValue, List oldRoleValue) throws 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
IllegalArgumentException
- for null or invalid parameters.Method Detail |
public List getMBeansToUnregister()
public List getNewRoleValue()
public ObjectName getObjectName()
public List getOldRoleValue()
public String getRelationId()
public String getRelationTypeName()
public String getRoleName()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |