| javax.management.relation.Relation
Relation | public interface Relation (Code) | | This interface has to be implemented by any MBean class expected to represent
a relation managed using the Relation Service.
Simple relations, i.e. having only roles, no properties or methods, can be
created directly by the Relation Service (represented as RelationSupport
objects, internally handled by the Relation Service).
If the user wants to represent more complex relations, involving properties
and/or methods, he has to provide his own class implementing the Relation
interface. This can be achieved either by inheriting from RelationSupport
class, or by implementing the interface (fully or delegation to a
RelationSupport object member).
Specifying such user relation class is to introduce properties and/or methods.
Those have to be exposed for remote management. So this means that any user
relation class must be a MBean class.
|
getReferencedMBeans | public Map getReferencedMBeans()(Code) | | Retrieves MBeans referenced in the various roles of the relation.
a HashMap mapping:ObjectName -> ArrayList of String (role names) |
getRelationId | public String getRelationId()(Code) | | Returns relation identifier (used to uniquely identify the relation
inside the Relation Service)
This will return the identifier |
getRelationServiceName | public ObjectName getRelationServiceName()(Code) | | Returns ObjectName of the Relation Service handling the relation
This returns the object name of the relation service |
getRelationTypeName | public String getRelationTypeName()(Code) | | Returns name of associated relation type.
Name of associated relation type. |
retrieveAllRoles | public RoleList retrieveAllRoles()(Code) | | Returns all roles in the relation without checking read mode
a RoleList |
|
|