com.caucho.server.cluster
Class ClusterGroup

java.lang.Object
  extended by com.caucho.server.cluster.ClusterGroup

public class ClusterGroup
extends java.lang.Object

Defines a group of clusters. Normally, the group is the entire set of clusters in the server. subgroups of servers.


Field Summary
protected static EnvironmentLocal<ClusterGroup> _clusterGroupLocal
           
 
Method Summary
 void addCluster(Cluster cluster)
          Adds a cluster.
static ClusterGroup createClusterGroup()
          Returns the cluster group for the current level.
 ServerConnector findClient(java.lang.String host, int port)
          Finds the srun client port matching the host and port.
 Cluster findCluster(java.lang.String id)
          Returns the cluster with the matching name.
static ClusterGroup getClusterGroup()
          Returns the cluster group for the current level.
 java.util.ArrayList<Cluster> getClusterList()
          Returns all the clusters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_clusterGroupLocal

protected static final EnvironmentLocal<ClusterGroup> _clusterGroupLocal
Method Detail

getClusterGroup

public static ClusterGroup getClusterGroup()
Returns the cluster group for the current level.


createClusterGroup

public static ClusterGroup createClusterGroup()
Returns the cluster group for the current level.


addCluster

public void addCluster(Cluster cluster)
Adds a cluster.


getClusterList

public java.util.ArrayList<Cluster> getClusterList()
Returns all the clusters.


findCluster

public Cluster findCluster(java.lang.String id)
Returns the cluster with the matching name.


findClient

public ServerConnector findClient(java.lang.String host,
                                  int port)
Finds the srun client port matching the host and port.