API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.management.relation. RelationSupport View Source
Author(s)
Since
1.5
Version
Serial
Hierarchy
 Object
      RelationSupport
Implements
 RelationSupportMBean
 MBeanRegistration
Subclasses
Description
public class RelationSupport
  A RelationSupport object is used internally by the Relation Service to represent simple relations (only roles, no properties or methods), with an unlimited number of roles, of any relation type.
See also:   
Constructors
public RelationSupport (String relationId, ObjectName relationServiceName, MBeanServer relationServiceMBeanServer, String relationTypeName, RoleList list) throws InvalidRoleValueException IllegalArgumentException
  Creates a RelationSupport object.
public RelationSupport (String relationId, ObjectName relationServiceName, String relationTypeName, RoleList list) throws InvalidRoleValueException IllegalArgumentException
  Creates a RelationSupport object.
Methods
Hide/Show inherited methods
public RoleResult getAllRoles () throws RelationServiceNotRegisteredException
  Returns all roles present in the relation.
pack-private RoleResult getAllRolesInt (boolean relationServCallFlg, RelationService relationServ) throws IllegalArgumentException RelationServiceNotRegisteredException
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.
pack-private Object getRoleInt (String roleName, boolean relationServCallFlg, RelationService relationServ, boolean multiRoleFlg) throws IllegalArgumentException RoleNotFoundException RelationServiceNotRegisteredException
public RoleResult getRoles (String roleNameArray) throws IllegalArgumentException RelationServiceNotRegisteredException
  Retrieves values of roles with given names.
pack-private RoleResult getRolesInt (String roleNameArray, boolean relationServCallFlg, RelationService relationServ) throws IllegalArgumentException RelationServiceNotRegisteredException
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.
pack-private void handleMBeanUnregistrationInt (ObjectName objectName, String roleName, boolean relationServCallFlg, RelationService relationServ) throws IllegalArgumentException RoleNotFoundException InvalidRoleValueException RelationServiceNotRegisteredException RelationTypeNotFoundException RelationNotFoundException
public Boolean isInRelationService () [Specified in RelationSupportMBean]
Returns an internal flag specifying if the object is still handled by the Relation Service.
public void postDeregister () [Specified in MBeanRegistration]
public void postRegister (Boolean registrationDone) [Specified in MBeanRegistration]
public void preDeregister () throws Exception [Specified in MBeanRegistration]
public ObjectName preRegister (MBeanServer server, ObjectName name) throws Exception [Specified in MBeanRegistration]
public RoleList retrieveAllRoles ()
  Returns all roles in the relation without checking read mode.
public void setRelationServiceManagementFlag (Boolean flag) throws IllegalArgumentException [Specified in RelationSupportMBean]
public void setRole (Role role) throws IllegalArgumentException RoleNotFoundException RelationTypeNotFoundException InvalidRoleValueException RelationServiceNotRegisteredException RelationNotFoundException
  Sets the given role.
pack-private Object setRoleInt (Role aRole, boolean relationServCallFlg, RelationService relationServ, boolean multiRoleFlg) throws IllegalArgumentException RoleNotFoundException InvalidRoleValueException RelationServiceNotRegisteredException RelationTypeNotFoundException RelationNotFoundException
public RoleResult setRoles (RoleList list) throws IllegalArgumentException RelationServiceNotRegisteredException RelationTypeNotFoundException RelationNotFoundException
  Sets the given roles.
pack-private RoleResult setRolesInt (RoleList list, boolean relationServCallFlg, RelationService relationServ) throws IllegalArgumentException RelationServiceNotRegisteredException RelationTypeNotFoundException RelationNotFoundException
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar