|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectFairness.Trees.TreeManager
Fairness.Trees.SimpleTreeManager
public class SimpleTreeManager
SimpleTreeManager is a simple tree manager which is used for testing and debugging purposes. It takes only a single stripe and a child thus forming a chain of single striped nodes.
Field Summary |
---|
Fields inherited from class Fairness.Trees.TreeManager |
---|
sim |
Constructor Summary | |
---|---|
SimpleTreeManager()
|
Method Summary | |
---|---|
int |
getNextNodeId()
Returns the next node ID using the node ID allocation algorithm from this TreeManager. |
java.util.Collection<Node> |
getRootNodes()
After a tree reconstruction, returns the nodes that are the roots of their stripe trees. |
void |
rebuildTree()
A method to completely rebuild the Node tree given all nodes in the system. |
protected void |
setUp()
Called when the public setup method is called. |
Methods inherited from class Fairness.Trees.TreeManager |
---|
addNode, forestToString, getAllNodes, setUp |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleTreeManager()
Method Detail |
---|
protected void setUp()
TreeManager
setUp
in class TreeManager
public java.util.Collection<Node> getRootNodes()
TreeManager
getRootNodes
in class TreeManager
public void rebuildTree()
TreeManager
rebuildTree
in class TreeManager
public int getNextNodeId()
TreeManager
getNextNodeId
in class TreeManager
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |