Methods Summary |
---|
public javax.management.relation.RoleResult | getAllRoles()Returns all roles present in the relation.
|
public java.util.Map | getReferencedMBeans()Retrieves MBeans referenced in the various roles of the relation.
|
public java.lang.String | getRelationId()Returns relation identifier (used to uniquely identify the relation
inside the Relation Service).
|
public javax.management.ObjectName | getRelationServiceName()Returns ObjectName of the Relation Service handling the relation.
|
public java.lang.String | getRelationTypeName()Returns name of associated relation type.
|
public java.util.List | getRole(java.lang.String roleName)Retrieves role value for given role name.
Checks if the role exists and is readable according to the relation
type.
|
public java.lang.Integer | getRoleCardinality(java.lang.String roleName)Returns the number of MBeans currently referenced in the given role.
|
public javax.management.relation.RoleResult | getRoles(java.lang.String[] roleNameArray)Retrieves values of roles with given names.
Checks for each role if it exists and is readable according to the
relation type.
|
public void | handleMBeanUnregistration(javax.management.ObjectName objectName, java.lang.String roleName)Callback used by the Relation Service when a MBean referenced in a role
is unregistered.
The Relation Service will call this method to let the relation
take action to reflect the impact of such unregistration.
BEWARE. the user is not expected to call this method.
Current implementation is to set the role with its current value
(list of ObjectNames of referenced MBeans) without the unregistered
one.
|
public javax.management.relation.RoleList | retrieveAllRoles()Returns all roles in the relation without checking read mode.
|
public void | setRole(javax.management.relation.Role role)Sets the given role.
Will check the role according to its corresponding role definition
provided in relation's relation type
Will send a notification (RelationNotification with type
RELATION_BASIC_UPDATE or RELATION_MBEAN_UPDATE, depending if the
relation is a MBean or not).
|
public javax.management.relation.RoleResult | setRoles(javax.management.relation.RoleList roleList)Sets the given roles.
Will check the role according to its corresponding role definition
provided in relation's relation type
Will send one notification (RelationNotification with type
RELATION_BASIC_UPDATE or RELATION_MBEAN_UPDATE, depending if the
relation is a MBean or not) per updated role.
|