|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.jaw.impl.agent.services.light.RelationSrv
This class provides a simple implementation of an relation service. The relation service makes use of the metadata service registered within the Common Management Framework. The implementation can be dynamically loaded into the CMF.
RelationSrvIf
, Serialized FormConstructor Summary | |
RelationSrv()
|
Method Summary | |
java.lang.String |
getClassVersion()
Returns the version of this class. |
ObjectName |
getRelationName(java.lang.String className)
Generate a unique relation name. |
void |
initCmf(Framework cmf,
ObjectName name,
boolean db,
ModificationList list)
For JDMK internal use only. |
ObjectName |
performAddRelation(RelationIf rel,
ObjectName relName)
Add an existing relation to the framework. |
java.util.Vector |
performGetRelations(ObjectName relClassName,
ObjectName roleName,
java.lang.Integer roleRank)
Get handles on relations of a given type with a given role. |
ObjectName |
performNewRelation(java.lang.String relClassName,
ObjectName relName,
ObjectName[] roleNames,
ObjectName aLoader)
Declare a new relation between a set of objects. |
boolean |
purgeOneRelation(ObjectName relName)
|
void |
purgeRelations()
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public RelationSrv()
Method Detail |
public void initCmf(Framework cmf, ObjectName name, boolean db, ModificationList list) throws InstanceAlreadyExistException
Initialize the Relation service. The method will declare the object to the Common Management Framework.
agent
- The core management framework to register the service with.name
- Object name.db
- Indicates if persistent storage is required.list
- The modification list to use for setting up parameters.public ObjectName performAddRelation(RelationIf rel, ObjectName relName) throws InstanceNotFoundException, InstanceAlreadyExistException
rel
- the relation to add.relName
- the name of the relation to add.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 the relation to create.roleNames
- the object names in the relation to create.relName
- the name of the relation to create.aLoader
- a class loader to use.public java.util.Vector performGetRelations(ObjectName relClassName, ObjectName roleName, java.lang.Integer roleRank) throws InstanceNotFoundException
relClassName
- name of the relation instanceroleName
- name of a role in the relation instancesroleRank
- which role in the relationpublic boolean purgeOneRelation(ObjectName relName)
public void purgeRelations()
public ObjectName getRelationName(java.lang.String className)
relClassName
- the class of the relation.public java.lang.String getClassVersion()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |