public class NodeCollection
extends java.lang.Object
Constructor and Description |
---|
NodeCollection() |
Modifier and Type | Method and Description |
---|---|
static void |
addNode(Node node)
Adds a new node to the collection.
|
static Node |
getNode(java.lang.String name)
Returns the node identified by a certain name.
|
static void |
reset()
Clears all the mapping in all nodes.
|
static java.util.Collection<Node> |
returnAllRegisteredNodes()
Returns a collection of all nodes currently registered in the system
|
public static Node getNode(java.lang.String name)
name
- the name of requested nodepublic static void addNode(Node node)
name
- the node to be added to the collectionpublic static java.util.Collection<Node> returnAllRegisteredNodes()
public static void reset()