|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The relationship service enables relationships between m-beans to be defined when they are required. The relationships do not need to be defined in advance. Information on the relationships between m-beans is not stored with the m-beans themselves, but is stored with the relationships. A relationship is an m-bean that implements the Java interface defined in com.sun.jaw.reference.common.RelationIf. To be able to access the relationship service, a relationship m-bean must be registered with the repository.
To implement a relationship service, implement the interface com.sun.jaw.reference.agent.services.RelationSrvIf. Using a relationship service, it is possible to:
RelationIf
Fields inherited from class java.io.Serializable |
serialVersionUID |
Method Summary | |
ObjectName |
getRelationName(java.lang.String relClassName)
Generates a unique relation name. |
ObjectName |
performAddRelation(RelationIf rel,
ObjectName relName)
Adds an existing relation to the framework. |
java.util.Vector |
performGetRelations(ObjectName relClassName,
ObjectName roleName,
java.lang.Integer roleRank)
Gets handles on relations of a given type with a given role. |
ObjectName |
performNewRelation(java.lang.String relClassName,
ObjectName relName,
ObjectName[] roleNames,
ObjectName aLoader)
Declares a new relation between a set of objects. |
void |
purgeRelations()
|
Method Detail |
public ObjectName getRelationName(java.lang.String relClassName)
relClassName
- The class of the relation.public ObjectName performAddRelation(RelationIf rel, ObjectName relName) throws InstanceAlreadyExistException, InstanceNotFoundException
rel
- The relation to be added.relName
- The name of the relation to be added.public ObjectName performNewRelation(java.lang.String relClassName, ObjectName relName, ObjectName[] roleNames, ObjectName aLoader) throws java.lang.InstantiationException, java.lang.ClassNotFoundException, InvalidPropertyValueException, InstanceAlreadyExistException, InstanceNotFoundException
relClassName
- The type of relation to be created.roleNames
- The object names in the relation to be created.relName
- The name of the relation to be created.aLoader
- The class loader to be used.public java.util.Vector performGetRelations(ObjectName relClassName, ObjectName roleName, java.lang.Integer roleRank) throws InstanceNotFoundException
relClassName
- Name of the relation instance.roleName
- Name of a role in the relation instances.roleRank
- Which role in the relation.public void purgeRelations()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |