org.apache.s4.comm.topology
Class PhysicalCluster
java.lang.Object
org.apache.s4.comm.topology.PhysicalCluster
public class PhysicalCluster
- extends java.lang.Object
The S4 physical cluster implementation.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PhysicalCluster
public PhysicalCluster(int numPartitions)
getPartitionCount
public int getPartitionCount()
- Returns:
- Number of partitions in the cluster.
addNode
public void addNode(ClusterNode node)
- Parameters:
node
-
getNodes
public java.util.List<ClusterNode> getNodes()
- Returns:
- a list of
ClusterNode
objects available in the cluster.
getName
public java.lang.String getName()
setName
public void setName(java.lang.String name)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object