javax.management.relation
Class RelationSupport

java.lang.Object
  |
  +--javax.management.relation.RelationSupport
All Implemented Interfaces:
MBeanRegistration, Relation, RelationSupportMBean

public class RelationSupport
extends java.lang.Object
implements RelationSupportMBean, MBeanRegistration

Version:
$Revision: 1.4 $
Author:
Bronwen Cassidy

Constructor Summary
RelationSupport(java.lang.String relationId, ObjectName relationServiceObjectName, MBeanServer server, java.lang.String relationTypeName, RoleList roleList)
           
RelationSupport(java.lang.String relationId, ObjectName relationServiceObjectName, java.lang.String relationTypeName, RoleList roleList)
           
 
Method Summary
 RoleResult getAllRoles()
           
 java.util.Map getReferencedMBeans()
           
 java.lang.String getRelationId()
           
 ObjectName getRelationServiceName()
           
 java.lang.String getRelationTypeName()
           
 java.util.List getRole(java.lang.String roleName)
           
 java.lang.Integer getRoleCardinality(java.lang.String roleName)
           
 RoleResult getRoles(java.lang.String[] roleNames)
           
 void handleMBeanUnregistration(ObjectName objectName, java.lang.String roleName)
           
 java.lang.Boolean isInRelationService()
           
 void postDeregister()
           
 void postRegister(java.lang.Boolean registrationDone)
           
 void preDeregister()
           
 ObjectName preRegister(MBeanServer server, ObjectName name)
           
 RoleList retrieveAllRoles()
           
 void setRelationServiceManagementFlag(java.lang.Boolean isHandledByRelationService)
           
 void setRole(Role role)
           
 RoleResult setRoles(RoleList roleList)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RelationSupport

public RelationSupport(java.lang.String relationId,
                       ObjectName relationServiceObjectName,
                       MBeanServer server,
                       java.lang.String relationTypeName,
                       RoleList roleList)
                throws InvalidRoleValueException,
                       java.lang.IllegalArgumentException

RelationSupport

public RelationSupport(java.lang.String relationId,
                       ObjectName relationServiceObjectName,
                       java.lang.String relationTypeName,
                       RoleList roleList)
                throws InvalidRoleValueException,
                       java.lang.IllegalArgumentException
Method Detail

getRole

public java.util.List getRole(java.lang.String roleName)
                       throws java.lang.IllegalArgumentException,
                              RoleNotFoundException,
                              RelationServiceNotRegisteredException
Specified by:
getRole in interface Relation

getRoles

public RoleResult getRoles(java.lang.String[] roleNames)
                    throws java.lang.IllegalArgumentException,
                           RelationServiceNotRegisteredException
Specified by:
getRoles in interface Relation

getAllRoles

public RoleResult getAllRoles()
                       throws RelationServiceNotRegisteredException
Specified by:
getAllRoles in interface Relation

retrieveAllRoles

public RoleList retrieveAllRoles()
Specified by:
retrieveAllRoles in interface Relation

setRole

public void setRole(Role role)
             throws java.lang.IllegalArgumentException,
                    RoleNotFoundException,
                    RelationTypeNotFoundException,
                    InvalidRoleValueException,
                    RelationServiceNotRegisteredException,
                    RelationNotFoundException
Specified by:
setRole in interface Relation

setRoles

public RoleResult setRoles(RoleList roleList)
                    throws java.lang.IllegalArgumentException,
                           RelationServiceNotRegisteredException,
                           RelationTypeNotFoundException,
                           RelationNotFoundException
Specified by:
setRoles in interface Relation

getRoleCardinality

public java.lang.Integer getRoleCardinality(java.lang.String roleName)
                                     throws java.lang.IllegalArgumentException,
                                            RoleNotFoundException
Specified by:
getRoleCardinality in interface Relation

handleMBeanUnregistration

public void handleMBeanUnregistration(ObjectName objectName,
                                      java.lang.String roleName)
                               throws java.lang.IllegalArgumentException,
                                      RoleNotFoundException,
                                      InvalidRoleValueException,
                                      RelationServiceNotRegisteredException,
                                      RelationTypeNotFoundException,
                                      RelationNotFoundException
Specified by:
handleMBeanUnregistration in interface Relation

getReferencedMBeans

public java.util.Map getReferencedMBeans()
Specified by:
getReferencedMBeans in interface Relation

getRelationTypeName

public java.lang.String getRelationTypeName()
Specified by:
getRelationTypeName in interface Relation

getRelationServiceName

public ObjectName getRelationServiceName()
Specified by:
getRelationServiceName in interface Relation

getRelationId

public java.lang.String getRelationId()
Specified by:
getRelationId in interface Relation

isInRelationService

public java.lang.Boolean isInRelationService()
Specified by:
isInRelationService in interface RelationSupportMBean

setRelationServiceManagementFlag

public void setRelationServiceManagementFlag(java.lang.Boolean isHandledByRelationService)
                                      throws java.lang.IllegalArgumentException
Specified by:
setRelationServiceManagementFlag in interface RelationSupportMBean

preRegister

public ObjectName preRegister(MBeanServer server,
                              ObjectName name)
                       throws java.lang.Exception
Specified by:
preRegister in interface MBeanRegistration

postRegister

public void postRegister(java.lang.Boolean registrationDone)
Specified by:
postRegister in interface MBeanRegistration

preDeregister

public void preDeregister()
                   throws java.lang.Exception
Specified by:
preDeregister in interface MBeanRegistration

postDeregister

public void postDeregister()
Specified by:
postDeregister in interface MBeanRegistration