API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.management.relation. Relation View Source
Author(s)
Since
1.5
Version
Serial
Hierarchy
 Relation
Subinterfaces
Description
public interface Relation
  This interface has to be implemented by any MBean class expected to represent a relation managed using the Relation Service.
See also:   
Methods
Hide/Show inherited methods
public RoleResult getAllRoles () throws RelationServiceNotRegisteredException
  Returns all roles present in the relation.
public Map<ObjectName, List<String>> getReferencedMBeans ()
  Retrieves MBeans referenced in the various roles of the relation.
public String getRelationId ()
  Returns relation identifier (used to uniquely identify the relation inside the Relation Service).
public ObjectName getRelationServiceName ()
  Returns ObjectName of the Relation Service handling the relation.
public String getRelationTypeName ()
  Returns name of associated relation type.
public List<ObjectName> getRole (String roleName) throws IllegalArgumentException RoleNotFoundException RelationServiceNotRegisteredException
  Retrieves role value for given role name.
public Integer getRoleCardinality (String roleName) throws IllegalArgumentException RoleNotFoundException
  Returns the number of MBeans currently referenced in the given role.
public RoleResult getRoles (String roleNameArray) throws IllegalArgumentException RelationServiceNotRegisteredException
  Retrieves values of roles with given names.
public void handleMBeanUnregistration (ObjectName objectName, String roleName) throws IllegalArgumentException RoleNotFoundException InvalidRoleValueException RelationServiceNotRegisteredException RelationTypeNotFoundException RelationNotFoundException
  Callback used by the Relation Service when a MBean referenced in a role is unregistered.
public RoleList retrieveAllRoles ()
  Returns all roles in the relation without checking read mode.
public void setRole (Role role) throws IllegalArgumentException RoleNotFoundException RelationTypeNotFoundException InvalidRoleValueException RelationServiceNotRegisteredException RelationNotFoundException
  Sets the given role.
public RoleResult setRoles (RoleList roleList) throws IllegalArgumentException RelationServiceNotRegisteredException RelationTypeNotFoundException RelationNotFoundException
  Sets the given roles.
Fields
Hide/Show inherited fields
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar