| java.lang.Object javax.management.NotificationBroadcasterSupport javax.management.relation.RelationService
Method Summary | |
public void | addRelation(ObjectName objectName) | public void | addRelationType(RelationType relationType) Adds given object as a relation type. | public Integer | checkRoleReading(String roleName, String relTypeName) | public Integer | checkRoleWriting(Role role, String relTypeName, Boolean initFlag) | public void | createRelation(String relationId, String relTypeName, RoleList roleList) | public void | createRelationType(String relTypeName, RoleInfo[] roleInfoArray) Creates a relation type (a RelationTypeSupport object) with given
role infos (provided by the RoleInfo objects), and adds it in the
Relation Service. | public Map | findAssociatedMBeans(ObjectName objectName, String relTypeName, String roleName) Retrieves the MBeans associated to given one in a relation.
This corresponds to CIM Associators and AssociatorNames operations.
Parameters: objectName - ObjectName of MBean Parameters: relTypeName - can be null; if specified, only the relationsof that type will be considered in the search. | public Map | findReferencingRelations(ObjectName objectName, String relTypeName, String roleName) Retrieves the relations where a given MBean is referenced.
Parameters: objectName - ObjectName of MBean Parameters: relTypeName - can be null; if specified, only the relationsof that type will be considered in the search. | public List | findRelationsOfType(String relTypeName) | public List | getAllRelationIds() | public List | getAllRelationTypeNames() | public RoleResult | getAllRoles(String relationId) | public MBeanNotificationInfo[] | getNotificationInfo() | public boolean | getPurgeFlag() | public Map | getReferencedMBeans(String relationId) Retrieves MBeans referenced in the various roles of the relation. | public String | getRelationTypeName(String relationId) | public List | getRole(String relationId, String roleName) | public Integer | getRoleCardinality(String relationId, String roleName) | public RoleInfo | getRoleInfo(String relTypeName, String roleInfoName) | public List | getRoleInfos(String relTypeName) | public RoleResult | getRoles(String relationId, String[] roleNames) | public void | handleNotification(Notification notif, Object handback) Invoked when a JMX notification occurs. | public Boolean | hasRelation(String relationId) | public void | isActive() | public String | isRelation(ObjectName objectName) | public ObjectName | isRelationMBean(String relationId) If the relation is represented by a MBean (created by the user and
added as a relation in the Relation Service), returns the ObjectName of
the MBean.
ObjectName of the corresponding relation MBean, or null ifthe relation is not a MBean. | public void | postDeregister() | public void | postRegister(Boolean registrationDone) | public void | preDeregister() | public ObjectName | preRegister(MBeanServer server, ObjectName name) | public void | purgeRelations() | public void | removeRelation(String relationId) | public void | removeRelationType(String relTypeName) | public void | sendRelationCreationNotification(String relationId) | public void | sendRelationRemovalNotification(String relationId, List unregMBeanList) | public void | sendRoleUpdateNotification(String relationId, Role newRole, List oldRoleValue) | public void | setPurgeFlag(boolean flag) Sets the flag to indicate if when a notification is received for the
unregistration of a MBean referenced in a relation, if an immediate
"purge" of the relations (look for the relations no longer valid)
has to be performed , or if that will be performed only when the
purgeRelations method will be explicitly called. | public void | setRole(String relationId, Role role) | public RoleResult | setRoles(String relationId, RoleList roleList) | public void | updateRoleMap(String relationId, Role role, List oldRoleValue) |
RelationService | public RelationService(boolean purgeFlag)(Code) | | |
findAssociatedMBeans | public Map findAssociatedMBeans(ObjectName objectName, String relTypeName, String roleName) throws IllegalArgumentException(Code) | | Retrieves the MBeans associated to given one in a relation.
This corresponds to CIM Associators and AssociatorNames operations.
Parameters: objectName - ObjectName of MBean Parameters: relTypeName - can be null; if specified, only the relationsof that type will be considered in the search. Else allrelation types are considered. Parameters: roleName - can be null; if specified, only the relationswhere the MBean is referenced in that role will be considered. Else allroles are considered. an HashMap, where the keys are the ObjectNames of the MBeansassociated to given MBean, and the value is, for each key, an ArrayListof the relation ids of the relations where the key MBean isassociated to given one (as they can be associated in several differentrelations). exception: IllegalArgumentException - if null parameter |
findReferencingRelations | public Map findReferencingRelations(ObjectName objectName, String relTypeName, String roleName) throws IllegalArgumentException(Code) | | Retrieves the relations where a given MBean is referenced.
Parameters: objectName - ObjectName of MBean Parameters: relTypeName - can be null; if specified, only the relationsof that type will be considered in the search. Else all relation typesare considered. Parameters: roleName - can be null; if specified, only the relationswhere the MBean is referenced in that role will be returned. Else allroles are considered. an HashMap, where the keys are the relation ids of the relationswhere the MBean is referenced, and the value is, for each key,an ArrayList of role names (as a MBean can be referenced in severalroles in the same relation). |
getAllRelationIds | public List getAllRelationIds()(Code) | | |
getAllRelationTypeNames | public List getAllRelationTypeNames()(Code) | | Retrieves names of all known relation types
ArrayList of relation type names (Strings) |
getPurgeFlag | public boolean getPurgeFlag()(Code) | | |
handleNotification | public void handleNotification(Notification notif, Object handback)(Code) | | Invoked when a JMX notification occurs.
Currently handles notifications for unregistration of MBeans, either
referenced in a relation role or being a relation itself.
Parameters: notif - The notification. Parameters: handback - An opaque object which helps the listener toassociate information regarding the MBean emitter (can be null). |
isRelationMBean | public ObjectName isRelationMBean(String relationId) throws IllegalArgumentException, RelationNotFoundException(Code) | | If the relation is represented by a MBean (created by the user and
added as a relation in the Relation Service), returns the ObjectName of
the MBean.
ObjectName of the corresponding relation MBean, or null ifthe relation is not a MBean. |
postDeregister | public void postDeregister()(Code) | | |
postRegister | public void postRegister(Boolean registrationDone)(Code) | | |
setPurgeFlag | public void setPurgeFlag(boolean flag)(Code) | | Sets the flag to indicate if when a notification is received for the
unregistration of a MBean referenced in a relation, if an immediate
"purge" of the relations (look for the relations no longer valid)
has to be performed , or if that will be performed only when the
purgeRelations method will be explicitly called.
true is immediate purge.
Parameters: flag - flag |
|
|