|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--javax.management.relation.RelationSupport
| 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()
Called upon after the MBean has been de-registered. |
void |
postRegister(java.lang.Boolean registrationDone)
Called upon after a registration ( successful or not ). |
void |
preDeregister()
Called upon before an MBean will be de-registered by
the MBeanServer. |
ObjectName |
preRegister(MBeanServer server,
ObjectName name)
Allows the MBean to perform any operations before being registered to the MBeanServer.
|
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 |
public RelationSupport(java.lang.String relationId,
ObjectName relationServiceObjectName,
MBeanServer server,
java.lang.String relationTypeName,
RoleList roleList)
throws InvalidRoleValueException,
java.lang.IllegalArgumentException
public RelationSupport(java.lang.String relationId,
ObjectName relationServiceObjectName,
java.lang.String relationTypeName,
RoleList roleList)
throws InvalidRoleValueException,
java.lang.IllegalArgumentException
| Method Detail |
public java.util.List getRole(java.lang.String roleName)
throws java.lang.IllegalArgumentException,
RoleNotFoundException,
RelationServiceNotRegisteredException
getRole in interface Relationjava.lang.IllegalArgumentException
RoleNotFoundException
RelationServiceNotRegisteredException
public RoleResult getRoles(java.lang.String[] roleNames)
throws java.lang.IllegalArgumentException,
RelationServiceNotRegisteredException
getRoles in interface Relationjava.lang.IllegalArgumentException
RelationServiceNotRegisteredException
public RoleResult getAllRoles()
throws RelationServiceNotRegisteredException
getAllRoles in interface RelationRelationServiceNotRegisteredExceptionpublic RoleList retrieveAllRoles()
retrieveAllRoles in interface Relation
public void setRole(Role role)
throws java.lang.IllegalArgumentException,
RoleNotFoundException,
RelationTypeNotFoundException,
InvalidRoleValueException,
RelationServiceNotRegisteredException,
RelationNotFoundException
setRole in interface Relationjava.lang.IllegalArgumentException
RoleNotFoundException
RelationTypeNotFoundException
InvalidRoleValueException
RelationServiceNotRegisteredException
RelationNotFoundException
public RoleResult setRoles(RoleList roleList)
throws java.lang.IllegalArgumentException,
RelationServiceNotRegisteredException,
RelationTypeNotFoundException,
RelationNotFoundException
setRoles in interface Relationjava.lang.IllegalArgumentException
RelationServiceNotRegisteredException
RelationTypeNotFoundException
RelationNotFoundException
public java.lang.Integer getRoleCardinality(java.lang.String roleName)
throws java.lang.IllegalArgumentException,
RoleNotFoundException
getRoleCardinality in interface Relationjava.lang.IllegalArgumentException
RoleNotFoundException
public void handleMBeanUnregistration(ObjectName objectName,
java.lang.String roleName)
throws java.lang.IllegalArgumentException,
RoleNotFoundException,
InvalidRoleValueException,
RelationServiceNotRegisteredException,
RelationTypeNotFoundException,
RelationNotFoundException
handleMBeanUnregistration in interface Relationjava.lang.IllegalArgumentException
RoleNotFoundException
InvalidRoleValueException
RelationServiceNotRegisteredException
RelationTypeNotFoundException
RelationNotFoundExceptionpublic java.util.Map getReferencedMBeans()
getReferencedMBeans in interface Relationpublic java.lang.String getRelationTypeName()
getRelationTypeName in interface Relationpublic ObjectName getRelationServiceName()
getRelationServiceName in interface Relationpublic java.lang.String getRelationId()
getRelationId in interface Relationpublic java.lang.Boolean isInRelationService()
isInRelationService in interface RelationSupportMBean
public void setRelationServiceManagementFlag(java.lang.Boolean isHandledByRelationService)
throws java.lang.IllegalArgumentException
setRelationServiceManagementFlag in interface RelationSupportMBeanjava.lang.IllegalArgumentException
public ObjectName preRegister(MBeanServer server,
ObjectName name)
throws java.lang.Exception
MBeanRegistrationMBeanServer.
Any exception will cause the MBean not being registered.
preRegister in interface MBeanRegistrationserver - The MBeanServer on which the MBean will be registered.name - The ObjectName of the MBean.
java.lang.Exception - Exception of the operation. Note that this is caught
by the MBeanServer and re-thrown as an
MBeanRegistrationException.public void postRegister(java.lang.Boolean registrationDone)
MBeanRegistration
postRegister in interface MBeanRegistrationregistrationDone - Evaluates to true of the registrations
is successful, false otherwise.
public void preDeregister()
throws java.lang.Exception
MBeanRegistrationMBean will be de-registered by
the MBeanServer.
preDeregister in interface MBeanRegistrationjava.lang.Exception - Would be caught by the MBeanServer
and rethrown as an MBeanRegistrationException.public void postDeregister()
MBeanRegistration
postDeregister in interface MBeanRegistration
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||