|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.cloud.topology.CloudSystem
public class CloudSystem
CloudDomain represents all the clusters in a Resin configuration.
Constructor Summary | |
---|---|
CloudSystem(java.lang.String id)
Creates a CloudDomain with an identifying id. |
Method Summary | |
---|---|
void |
addClusterListener(CloudClusterListener listener)
Adds a listener to detect server add and removed. |
CloudCluster |
createCluster(java.lang.String id)
Creates a new cluster. |
CloudCluster |
findCluster(java.lang.String id)
Finds the server with the unique id. |
CloudServer |
findServer(java.lang.String id)
Finds the server with the unique id. |
CloudServer |
findServer(java.lang.String address,
int port)
Finds the first server with the given address and port |
CloudServer |
findServer(java.lang.String clusterId,
int podIndex,
int serverIndex)
Finds the server with the unique id. |
CloudCluster[] |
getClusterList()
Return the clusters in the cloud. |
java.lang.String |
getId()
Returns the server id. |
boolean |
removeCluster(java.lang.String id)
Creates a new cluster. |
void |
removeClusterListener(CloudClusterListener listener)
Removes a listener to detect server add and removed. |
void |
start()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CloudSystem(java.lang.String id)
Method Detail |
---|
public java.lang.String getId()
public CloudCluster[] getClusterList()
public CloudCluster findCluster(java.lang.String id)
public CloudServer findServer(java.lang.String id)
public CloudServer findServer(java.lang.String clusterId, int podIndex, int serverIndex)
public CloudServer findServer(java.lang.String address, int port)
public CloudCluster createCluster(java.lang.String id)
public boolean removeCluster(java.lang.String id)
public void addClusterListener(CloudClusterListener listener)
public void removeClusterListener(CloudClusterListener listener)
public void start()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |