public class CloudCluster
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
addPodListener(CloudPodListener listener)
Adds a listener to detect pod add and remove.
|
CloudPod |
createPod()
Creates a new pod
|
CloudPod |
createPod(int index)
Creates a new pod
|
CloudPod |
findPod(int podIndex)
Returns the pod with the given index.
|
CloudPod |
findPod(java.lang.String id)
Returns the pod with the given index.
|
CloudServer |
findServer(int podIndex,
int index)
Finds the first server with the given server-id.
|
CloudServer |
findServer(java.lang.String id)
Finds the first server with the given server-id.
|
CloudServer |
findServer(java.lang.String address,
int port)
Finds the first server with the given server-id.
|
CloudServer |
findServerByUniqueClusterId(java.lang.String id)
Finds the first server with the given server-id.
|
ClusterMXBean |
getAdmin() |
<T> T |
getData(java.lang.Class<T> cl) |
java.lang.String |
getId()
Gets the cluster id.
|
CloudPod[] |
getPodList()
Returns the list of pods for the cluster
|
CloudSystem |
getSystem()
Returns the owning domain.
|
void |
putData(java.lang.Object value) |
<T> T |
putDataIfAbsent(T value) |
boolean |
removePod(int index)
Creates a new cluster.
|
void |
removePodListener(CloudPodListener listener)
Removes a listener to detect pod add and remove.
|
java.lang.String |
toString() |
public java.lang.String getId()
public CloudSystem getSystem()
public CloudPod[] getPodList()
public ClusterMXBean getAdmin()
public CloudServer findServer(java.lang.String id)
public CloudServer findServerByUniqueClusterId(java.lang.String id)
public CloudServer findServer(int podIndex, int index)
public CloudPod findPod(int podIndex)
public CloudPod findPod(java.lang.String id)
public CloudPod createPod()
public CloudPod createPod(int index)
public boolean removePod(int index)
public CloudServer findServer(java.lang.String address, int port)
public void putData(java.lang.Object value)
public <T> T putDataIfAbsent(T value)
public <T> T getData(java.lang.Class<T> cl)
public void addPodListener(CloudPodListener listener)
public void removePodListener(CloudPodListener listener)
public java.lang.String toString()
toString
in class java.lang.Object