|
||||||||||||
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 Relation
java.lang.IllegalArgumentException
RoleNotFoundException
RelationServiceNotRegisteredException
public RoleResult getRoles(java.lang.String[] roleNames) throws java.lang.IllegalArgumentException, RelationServiceNotRegisteredException
getRoles
in interface Relation
java.lang.IllegalArgumentException
RelationServiceNotRegisteredException
public RoleResult getAllRoles() throws RelationServiceNotRegisteredException
getAllRoles
in interface Relation
RelationServiceNotRegisteredException
public RoleList retrieveAllRoles()
retrieveAllRoles
in interface Relation
public void setRole(Role role) throws java.lang.IllegalArgumentException, RoleNotFoundException, RelationTypeNotFoundException, InvalidRoleValueException, RelationServiceNotRegisteredException, RelationNotFoundException
setRole
in interface Relation
java.lang.IllegalArgumentException
RoleNotFoundException
RelationTypeNotFoundException
InvalidRoleValueException
RelationServiceNotRegisteredException
RelationNotFoundException
public RoleResult setRoles(RoleList roleList) throws java.lang.IllegalArgumentException, RelationServiceNotRegisteredException, RelationTypeNotFoundException, RelationNotFoundException
setRoles
in interface Relation
java.lang.IllegalArgumentException
RelationServiceNotRegisteredException
RelationTypeNotFoundException
RelationNotFoundException
public java.lang.Integer getRoleCardinality(java.lang.String roleName) throws java.lang.IllegalArgumentException, RoleNotFoundException
getRoleCardinality
in interface Relation
java.lang.IllegalArgumentException
RoleNotFoundException
public void handleMBeanUnregistration(ObjectName objectName, java.lang.String roleName) throws java.lang.IllegalArgumentException, RoleNotFoundException, InvalidRoleValueException, RelationServiceNotRegisteredException, RelationTypeNotFoundException, RelationNotFoundException
handleMBeanUnregistration
in interface Relation
java.lang.IllegalArgumentException
RoleNotFoundException
InvalidRoleValueException
RelationServiceNotRegisteredException
RelationTypeNotFoundException
RelationNotFoundException
public java.util.Map getReferencedMBeans()
getReferencedMBeans
in interface Relation
public java.lang.String getRelationTypeName()
getRelationTypeName
in interface Relation
public ObjectName getRelationServiceName()
getRelationServiceName
in interface Relation
public java.lang.String getRelationId()
getRelationId
in interface Relation
public java.lang.Boolean isInRelationService()
isInRelationService
in interface RelationSupportMBean
public void setRelationServiceManagementFlag(java.lang.Boolean isHandledByRelationService) throws java.lang.IllegalArgumentException
setRelationServiceManagementFlag
in interface RelationSupportMBean
java.lang.IllegalArgumentException
public ObjectName preRegister(MBeanServer server, ObjectName name) throws java.lang.Exception
MBeanRegistration
MBeanServer
.
Any exception will cause the MBean not being registered.
preRegister
in interface MBeanRegistration
server
- 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 MBeanRegistration
registrationDone
- Evaluates to true of the registrations
is successful, false otherwise.public void preDeregister() throws java.lang.Exception
MBeanRegistration
MBean
will be de-registered by
the MBeanServer
.
preDeregister
in interface MBeanRegistration
java.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 |