public class ClusterNodeList extends Object
Constructor and Description |
---|
ClusterNodeList()
Default constructor
|
ClusterNodeList(int initCapac)
Class constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addNode(ClusterNode node)
Add a node to the set
|
List<ClusterNode> |
asPriorityOrderedList()
Return the list of nodes ordered by priority
|
Enumeration<String> |
enumerateNodes()
Return an enumeration for the node names
|
ClusterNode |
findNode(String name)
Find a node
|
int |
numberOfNodes()
Return the count of nodes in the set
|
ClusterNode |
removeNode(String name)
Remove a node from the list
|
String |
toString()
Return the cluster node set as a string
|
public ClusterNodeList()
public ClusterNodeList(int initCapac)
initCapac
- intpublic final int numberOfNodes()
public final ClusterNode findNode(String name)
name
- Stringpublic final void addNode(ClusterNode node)
node
- ClusterNodepublic final ClusterNode removeNode(String name)
name
- Stringpublic final Enumeration<String> enumerateNodes()
public List<ClusterNode> asPriorityOrderedList()
Copyright © 2005–2017 Alfresco Software. All rights reserved.