public void
addNotificationListener
(NotificationListener listener, NotificationFilter filter, Object handback)
[Inherited From NotificationBroadcasterSupport]
public void
addRelation
(ObjectName relationObjectName)
throws
IllegalArgumentException
RelationServiceNotRegisteredException
NoSuchMethodException
InvalidRelationIdException
InstanceNotFoundException
InvalidRelationServiceException
RelationTypeNotFoundException
RoleNotFoundException
InvalidRoleValueException
[Specified in RelationServiceMBean]
public void
addRelationType
(RelationType relationTypeObj)
throws
IllegalArgumentException
InvalidRelationTypeException
[Specified in RelationServiceMBean]
public Integer
checkRoleReading
(String roleName, String relationTypeName)
throws
IllegalArgumentException
RelationTypeNotFoundException
[Specified in RelationServiceMBean]
public Integer
checkRoleWriting
(Role role, String relationTypeName, Boolean initFlag)
throws
IllegalArgumentException
RelationTypeNotFoundException
[Specified in RelationServiceMBean]
public void
createRelation
(String relationId, String relationTypeName, RoleList roleList)
throws
RelationServiceNotRegisteredException
IllegalArgumentException
RoleNotFoundException
InvalidRelationIdException
RelationTypeNotFoundException
InvalidRoleValueException
[Specified in RelationServiceMBean]
public void
createRelationType
(String relationTypeName, RoleInfo roleInfoArray)
throws
IllegalArgumentException
InvalidRelationTypeException
[Specified in RelationServiceMBean]
public Map<ObjectName, List<String>>
findAssociatedMBeans
(ObjectName mbeanName, String relationTypeName, String roleName)
throws
IllegalArgumentException
[Specified in RelationServiceMBean]
public Map<String, List<String>>
findReferencingRelations
(ObjectName mbeanName, String relationTypeName, String roleName)
throws
IllegalArgumentException
[Specified in RelationServiceMBean]
public List<String>
findRelationsOfType
(String relationTypeName)
throws
IllegalArgumentException
RelationTypeNotFoundException
[Specified in RelationServiceMBean]
public RoleResult
getAllRoles
(String relationId)
throws
IllegalArgumentException
RelationNotFoundException
RelationServiceNotRegisteredException
[Specified in RelationServiceMBean]
public MBeanNotificationInfo
getNotificationInfo
()
[Overrides NotificationBroadcasterSupport]
public boolean
getPurgeFlag
()
[Specified in RelationServiceMBean]
Returns the flag to indicate if when a notification is received for the
unregistration of an MBean referenced in a relation, if an immediate
"purge" of the relations (look for the relations no longer valid)
has to be performed , or if that will be performed only when the
purgeRelations method will be explicitly called.
public Map<ObjectName, List<String>>
getReferencedMBeans
(String relationId)
throws
IllegalArgumentException
RelationNotFoundException
[Specified in RelationServiceMBean]
pack-private Object
getRelation
(String relationId)
throws
IllegalArgumentException
RelationNotFoundException
pack-private RelationType
getRelationType
(String relationTypeName)
throws
IllegalArgumentException
RelationTypeNotFoundException
public String
getRelationTypeName
(String relationId)
throws
IllegalArgumentException
RelationNotFoundException
[Specified in RelationServiceMBean]
public List<ObjectName>
getRole
(String relationId, String roleName)
throws
RelationServiceNotRegisteredException
IllegalArgumentException
RelationNotFoundException
RoleNotFoundException
[Specified in RelationServiceMBean]
public Integer
getRoleCardinality
(String relationId, String roleName)
throws
IllegalArgumentException
RelationNotFoundException
RoleNotFoundException
[Specified in RelationServiceMBean]
public RoleInfo
getRoleInfo
(String relationTypeName, String roleInfoName)
throws
IllegalArgumentException
RelationTypeNotFoundException
RoleInfoNotFoundException
[Specified in RelationServiceMBean]
public List<RoleInfo>
getRoleInfos
(String relationTypeName)
throws
IllegalArgumentException
RelationTypeNotFoundException
[Specified in RelationServiceMBean]
public RoleResult
getRoles
(String relationId, String roleNameArray)
throws
RelationServiceNotRegisteredException
IllegalArgumentException
RelationNotFoundException
[Specified in RelationServiceMBean]
protected void
handleNotification
(NotificationListener listener, Notification notif, Object handback)
[Inherited From NotificationBroadcasterSupport]
This method is called by sendNotification for each listener in order to send the
notification to that listener.
public void
handleNotification
(Notification notif, Object handback)
[Specified in NotificationListener]
public Boolean
hasRelation
(String relationId)
throws
IllegalArgumentException
[Specified in RelationServiceMBean]
public void
isActive
()
throws
RelationServiceNotRegisteredException
[Specified in RelationServiceMBean]
public String
isRelation
(ObjectName objectName)
throws
IllegalArgumentException
[Specified in RelationServiceMBean]
public ObjectName
isRelationMBean
(String relationId)
throws
IllegalArgumentException
RelationNotFoundException
[Specified in RelationServiceMBean]
public ObjectName
preRegister
(MBeanServer server, ObjectName name)
throws
Exception
[Specified in MBeanRegistration]
public void
purgeRelations
()
throws
RelationServiceNotRegisteredException
[Specified in RelationServiceMBean]
public void
removeNotificationListener
(NotificationListener listener)
throws
ListenerNotFoundException
[Inherited From NotificationBroadcasterSupport]
public void
removeNotificationListener
(NotificationListener listener, NotificationFilter filter, Object handback)
throws
ListenerNotFoundException
[Inherited From NotificationBroadcasterSupport]
public void
removeRelation
(String relationId)
throws
RelationServiceNotRegisteredException
IllegalArgumentException
RelationNotFoundException
[Specified in RelationServiceMBean]
public void
removeRelationType
(String relationTypeName)
throws
RelationServiceNotRegisteredException
IllegalArgumentException
RelationTypeNotFoundException
[Specified in RelationServiceMBean]
public void
sendNotification
(Notification notification)
[Inherited From NotificationBroadcasterSupport]
public void
sendRelationCreationNotification
(String relationId)
throws
IllegalArgumentException
RelationNotFoundException
[Specified in RelationServiceMBean]
public void
sendRelationRemovalNotification
(String relationId, List<ObjectName> unregMBeanList)
throws
IllegalArgumentException
RelationNotFoundException
[Specified in RelationServiceMBean]
public void
sendRoleUpdateNotification
(String relationId, Role newRole, List<ObjectName> oldValue)
throws
IllegalArgumentException
RelationNotFoundException
[Specified in RelationServiceMBean]
public void
setPurgeFlag
(boolean purgeFlag)
[Specified in RelationServiceMBean]
Sets the flag to indicate if when a notification is received for the
unregistration of an MBean referenced in a relation, if an immediate
"purge" of the relations (look for the relations no longer valid)
has to be performed , or if that will be performed only when the
purgeRelations method will be explicitly called.
public void
setRole
(String relationId, Role role)
throws
RelationServiceNotRegisteredException
IllegalArgumentException
RelationNotFoundException
RoleNotFoundException
InvalidRoleValueException
[Specified in RelationServiceMBean]
public RoleResult
setRoles
(String relationId, RoleList roleList)
throws
RelationServiceNotRegisteredException
IllegalArgumentException
RelationNotFoundException
[Specified in RelationServiceMBean]
pack-privatestatic void
throwRoleProblemException
(int pbType, String roleName)
throws
IllegalArgumentException
RoleNotFoundException
InvalidRoleValueException
public void
updateRoleMap
(String relationId, Role newRole, List<ObjectName> oldValue)
throws
IllegalArgumentException
RelationServiceNotRegisteredException
RelationNotFoundException
[Specified in RelationServiceMBean]