All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface com.sun.jaw.reference.common.RelationIf

public interface RelationIf
extends Serializable

Defining Relationships

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.

Model

In Java Dynamic Management Kit, a relationship is defined by:

The m-beans involved in a relationship are referred to within the relationship by their object names.

Implementing a Relationship Service

To implement a relationship service, implement the interface com.sun.jaw.reference.agent.services.RelationSrvIf. Using a relationship service, it is possible to:

See Also:
RelationSrvIf

Method Index

 o getDegree()
Getter for "degree" property.
 o getRole()
Getter for "Role" property.
 o getRole(int)
Getter for "Role" property.
 o setRole(int, ObjectName)
Setter for the "Role" property.
 o setRole(ObjectName[])
Setter for the "Role" property.

Methods

 o getDegree
 public abstract Integer getDegree()
Getter for "degree" property. It corresponds to the number of required roles in a relationship

Returns:
The number of required roles in the current relationship
 o getRole
 public abstract ObjectName[] getRole()
Getter for "Role" property. It returns the set of roles.

Returns:
The set of roles in the current relationship.
 o getRole
 public abstract ObjectName getRole(int position)
Getter for "Role" property. It returns the role at the given index in the relationship.

Parameters:
position - the position in the role property.
Returns:
A role in the current relationship.
 o setRole
 public abstract void setRole(int position,
                              ObjectName roleName)
Setter for the "Role" property.

Parameters:
pos - the position in the role property.
roleName - the new value of the roleName.
 o setRole
 public abstract void setRole(ObjectName roleNames[])
Setter for the "Role" property.

Parameters:
roleNames - the new value of the "Role" property.

All Packages  Class Hierarchy  This Package  Previous  Next  Index