|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface VariableTreeMBean
VariableTreeMBean is an interface to a relation of variables forming a tree. VariableTreeMBean collects related variables under the same container. The relation consists of a mandatory base representing the relation itself and roles for any number of leaves and branches.
All notifications sent by members of the tree are automatically propagated to trunks of the tree until the root is reached. Relation notifications are sent as such, but others are wrapped by an actor notification.
| Field Summary | |
|---|---|
static String |
BEAN_TREE_RELATION
The tree relation MBean. |
static String |
ROLE_BASE
The tree base role. |
static String |
ROLE_BRANCH
The tree branch role. |
static String |
ROLE_LEAF
The tree leaf role. |
| Fields inherited from interface org.norther.tammi.core.base.ReferableMBean |
|---|
DEFAULT_ID, ID, MBEAN, MBEAN_DESCRIPTION, TYPE |
| Method Summary | |
|---|---|
boolean |
addBranchName(ObjectName name)
Adds a new branch. |
boolean |
addBranchNames(Collection names)
Adds new branches. |
boolean |
addLeafName(ObjectName name)
Adds a new leaf. |
boolean |
addLeafNames(Collection names)
Adds new leaves. |
boolean |
clearBranchNames()
Clears all branches. |
boolean |
clearLeafNames()
Clears all leaves. |
boolean |
containsBranchName(ObjectName name)
Checks whether there is a specific branch. |
boolean |
containsLeafName(ObjectName name)
Checks whether there is a specific leaf. |
Variable |
getBase()
Gets the referent of the base MBean. |
ObjectName |
getBaseName()
Gets the object name of the base. |
VariableTreeMBean |
getBranch(ObjectName name)
Gets the referent of the named branch MBean. |
List |
getBranches()
Gets referents of branch MBeans. |
List |
getBranchNames()
Gets object names of branches. |
Variable |
getLeaf(ObjectName name)
Gets the reference of the named leaf MBean. |
List |
getLeafNames()
Gets object names of leaves. |
List |
getLeaves()
Gets referents of leaf MBeans. |
boolean |
isUnregisterRemovedActors()
Gets the unregister removed actors option. |
void |
notifyVariableTree()
Notifies the tree by sending a modification notification. |
boolean |
removeBranchName(ObjectName name)
Removes a branch. |
boolean |
removeBranchNames(Collection names)
Removes branches. |
boolean |
removeLeafName(ObjectName name)
Removes a leaf. |
boolean |
removeLeafNames(Collection names)
Removes leaves. |
void |
setBaseName(ObjectName name)
Sets the base. |
void |
setUnregisterRemovedActors(boolean flag)
Sets the unregister removed actors option. |
| Methods inherited from interface org.norther.tammi.core.relation.RelationMBean |
|---|
addActorName, addActorName, addActorNames, addToService, clearRole, getActor, getActor, getActor, getActorName, getActorName, getRelationService, getRoleActors, isNamedActorInRole, removeActorName, removeActorName, removeActorNames, removeFromService, retrieveRole, setActorName, setActorName |
| Methods inherited from interface javax.management.relation.RelationSupportMBean |
|---|
isInRelationService, setRelationServiceManagementFlag |
| Methods inherited from interface javax.management.relation.Relation |
|---|
getAllRoles, getReferencedMBeans, getRelationId, getRelationServiceName, getRelationTypeName, getRole, getRoleCardinality, getRoles, handleMBeanUnregistration, retrieveAllRoles, setRole, setRoles |
| Methods inherited from interface org.norther.tammi.core.base.ReferableMBean |
|---|
getMBean |
| Field Detail |
|---|
static final String ROLE_BASE
static final String ROLE_LEAF
static final String ROLE_BRANCH
static final String BEAN_TREE_RELATION
| Method Detail |
|---|
ObjectName getBaseName()
void setBaseName(ObjectName name)
throws LogException
Note that the base can be set only once the relation is included in the relation service.
name - the object name of the base.
LogException - on errors.Variable getBase()
Variable getLeaf(ObjectName name)
name - the name of the leaf.
List getLeafNames()
List getLeaves()
boolean addLeafName(ObjectName name)
throws LogException
name - the object name of the leaf.
LogException - on errors.
boolean addLeafNames(Collection names)
throws LogException
names - a collection of object names.
LogException - on errors.boolean removeLeafName(ObjectName name)
name - the object name of the leaf.
boolean removeLeafNames(Collection names)
names - a collection of object names.
boolean containsLeafName(ObjectName name)
name - the object name of the leaf.
boolean clearLeafNames()
VariableTreeMBean getBranch(ObjectName name)
name - the name of the branch.
List getBranchNames()
List getBranches()
boolean addBranchName(ObjectName name)
throws LogException
name - the object name of the branch.
LogException - on errors.
boolean addBranchNames(Collection names)
throws LogException
names - a collection of object names.
LogException - on errors.boolean removeBranchName(ObjectName name)
name - the object name of the branch.
boolean removeBranchNames(Collection names)
names - a collection of object names.
boolean containsBranchName(ObjectName name)
name - the object name of the branch.
boolean clearBranchNames()
boolean isUnregisterRemovedActors()
void setUnregisterRemovedActors(boolean flag)
flag - the option value to set.void notifyVariableTree()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||