com.caucho.cloud.elastic
Class ElasticCloudClient

java.lang.Object
  extended by com.caucho.cloud.elastic.ElasticCloudClient
All Implemented Interfaces:
ResinScalingClient

public class ElasticCloudClient
extends java.lang.Object
implements ResinScalingClient

DynamicCloud Client API


Constructor Summary
ElasticCloudClient(java.lang.String address, int port)
           
ElasticCloudClient(java.lang.String host, int port, java.lang.String userName, java.lang.String password)
           
 
Method Summary
 void close()
           
 void connect(java.lang.String systemKey)
           
 void connect(java.lang.String userName, java.lang.String password)
           
 CloudServerState disable(java.lang.String serverId)
           
 CloudServerState disableSoft(java.lang.String serverId)
           
 CloudServerState enable(java.lang.String serverId)
           
 JoinResult join(java.lang.String id, java.lang.String address, int port)
           
protected  java.io.Serializable query(java.io.Serializable query)
           
 ScalingPod status()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ElasticCloudClient

public ElasticCloudClient(java.lang.String address,
                          int port)

ElasticCloudClient

public ElasticCloudClient(java.lang.String host,
                          int port,
                          java.lang.String userName,
                          java.lang.String password)
Method Detail

connect

public void connect(java.lang.String userName,
                    java.lang.String password)

connect

public void connect(java.lang.String systemKey)

status

public ScalingPod status()

join

public JoinResult join(java.lang.String id,
                       java.lang.String address,
                       int port)

disable

public CloudServerState disable(java.lang.String serverId)
Specified by:
disable in interface ResinScalingClient

disableSoft

public CloudServerState disableSoft(java.lang.String serverId)
Specified by:
disableSoft in interface ResinScalingClient

enable

public CloudServerState enable(java.lang.String serverId)
Specified by:
enable in interface ResinScalingClient

query

protected java.io.Serializable query(java.io.Serializable query)

close

public void close()
Specified by:
close in interface ResinScalingClient

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object