| java.lang.Object javax.management.NotificationBroadcasterSupport javax.management.relation.RelationService
RelationService | public class RelationService extends NotificationBroadcasterSupport implements RelationServiceMBean,MBeanRegistration,NotificationListener(Code) | | Implements the management interface for a relation service.
Revisions:
20020311 Adrian Brock:
- Fixed setRole for external MBean and exception handling
- EmptyStack exception in purging
- Unregistered mbeans should only contain relation mbeans
- Unregister notifications not working after change to MBean Filter
20020312 Adrian Brock:
- Fixed wrong exception types thrown and missing exceptions
- Allow null role list in createRelation
See Also: RelationServiceMBean author: Adrian Brock. version: $Revision: 57200 $ |
Method Summary | |
public synchronized void | addRelation(ObjectName relation) | public synchronized void | addRelationType(RelationType relationType) | public Integer | checkRoleReading(String roleName, String relationTypeName) | public Integer | checkRoleWriting(Role role, String relationTypeName, Boolean initFlag) | public synchronized void | createRelation(String relationId, String relationTypeName, RoleList roleList) | public synchronized void | createRelationType(String relationTypeName, RoleInfo[] roleInfos) | public Map | findAssociatedMBeans(ObjectName mbeanName, String relationTypeName, String roleName) | public Map | findReferencingRelations(ObjectName mbeanName, String relationTypeName, String roleName) | public List | findRelationsOfType(String relationTypeName) | public List | getAllRelationIds() | public List | getAllRelationTypeNames() | public RoleResult | getAllRoles(String relationId) | public MBeanNotificationInfo[] | getNotificationInfo() | public boolean | getPurgeFlag() | public Map | getReferencedMBeans(String relationId) | public String | getRelationTypeName(String relationId) | public List | getRole(String relationId, String roleName) | public Integer | getRoleCardinality(String relationId, String roleName) | public RoleInfo | getRoleInfo(String relationTypeName, String roleInfoName) | public List | getRoleInfos(String relationTypeName) | public RoleResult | getRoles(String relationId, String[] roleNames) | public void | handleNotification(Notification notification, Object handback) | public Boolean | hasRelation(String relationId) | public void | isActive() | public String | isRelation(ObjectName objectName) | public ObjectName | isRelationMBean(String relationId) | public void | postDeregister() | public void | postRegister(Boolean registered) | public void | preDeregister() | public ObjectName | preRegister(MBeanServer server, ObjectName objectName) | public void | purgeRelations() | public synchronized void | removeRelation(String relationId) | public synchronized void | removeRelationType(String relationTypeName) | public void | sendRelationCreationNotification(String relationId) | public void | sendRelationRemovalNotification(String relationId, List unregMBeans) | public void | sendRoleUpdateNotification(String relationId, Role newRole, List oldRoleValue) | public void | setPurgeFlag(boolean value) | public void | setRole(String relationId, Role role) | public RoleResult | setRoles(String relationId, RoleList roles) | public void | updateRoleMap(String relationId, Role newRole, List oldRoleValue) |
RelationService | public RelationService(boolean purgeFlag)(Code) | | Construct a new relation service
Parameters: purgeFlag - whether immediate purges should be performed,pass true for immediate, false otherwise |
getAllRelationIds | public List getAllRelationIds()(Code) | | |
getAllRelationTypeNames | public List getAllRelationTypeNames()(Code) | | |
getPurgeFlag | public boolean getPurgeFlag()(Code) | | |
postDeregister | public void postDeregister()(Code) | | |
setPurgeFlag | public void setPurgeFlag(boolean value)(Code) | | |
|
|