|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.xerox.amazonws.common.AWSConnection
com.xerox.amazonws.common.AWSQueryConnection
com.xerox.amazonws.ec2.LoadBalancing
public class LoadBalancing
A Java wrapper for the EC2 web services API
| Field Summary |
|---|
| Fields inherited from class com.xerox.amazonws.common.AWSConnection |
|---|
headers |
| Constructor Summary | |
|---|---|
LoadBalancing(String awsAccessId,
String awsSecretKey)
Initializes the ec2 service with your AWS login information. |
|
LoadBalancing(String awsAccessId,
String awsSecretKey,
boolean isSecure)
Initializes the ec2 service with your AWS login information. |
|
LoadBalancing(String awsAccessId,
String awsSecretKey,
boolean isSecure,
String server)
Initializes the ec2 service with your AWS login information. |
|
LoadBalancing(String awsAccessId,
String awsSecretKey,
boolean isSecure,
String server,
int port)
Initializes the ec2 service with your AWS login information. |
|
| Method Summary | ||
|---|---|---|
HealthCheck |
configureHealthCheck(String loadBalancerName,
HealthCheck healthCheck)
Configure health check. |
|
String |
createLoadBalancer(String loadBalancerName,
List<Listener> listeners,
List<String> availabilityZones)
Create load balancer. |
|
void |
deleteLoadBalancer(String loadBalancerName)
Delete load balancer. |
|
List<String> |
deregisterInstancesFromLoadBalancer(String loadBalancerName,
List<String> instances)
Deregister instances from load balancer. |
|
List<InstanceState> |
describeInstanceHealth(String loadBalancerName)
Describe the current state of the instances registered with the load balancer. |
|
List<InstanceState> |
describeInstanceHealth(String loadBalancerName,
List<String> instances)
Describe the current state of the instances specified |
|
List<LoadBalancer> |
describeLoadBalancers()
Describe all load balancers. |
|
List<LoadBalancer> |
describeLoadBalancers(List<String> loadBalancerNames)
Describe load balancers. |
|
List<String> |
disableAvailabilityZonesForLoadBalancer(String loadBalancerName,
List<String> availabilityZones)
Disable availability zones. |
|
List<String> |
enableAvailabilityZonesForLoadBalancer(String loadBalancerName,
List<String> availabilityZones)
Add availability zones. |
|
protected
|
makeRequestInt(org.apache.http.client.methods.HttpRequestBase method,
String action,
Map<String,String> params,
Class<T> respType)
|
|
List<String> |
registerInstancesWithLoadBalancer(String loadBalancerName,
List<String> instances)
Register instance(s) with a load balancer. |
|
| Methods inherited from class com.xerox.amazonws.common.AWSQueryConnection |
|---|
close, close, getConnectionManagerTimeout, getConnectionTimeout, getHeaders, getHttpClient, getMaxConnections, getMaxRetries, getServerTimeZone, getSoTimeout, getString, httpDate, makeRequest, setConnectionManagerTimeout, setConnectionTimeout, setHttpClient, setMaxConnections, setMaxRetries, setProxyValues, setProxyValues, setProxyValues, setServerTimeZone, setSoTimeout, useSystemProxy |
| Methods inherited from class com.xerox.amazonws.common.AWSConnection |
|---|
encode, encode, getAlgorithm, getAwsAccessKeyId, getPort, getResourcePrefix, getSecretAccessKey, getServer, getSignatureVersion, getUrl, isSecure, makeURL, setResourcePrefix, setServer, setSignatureVersion, urlencode |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LoadBalancing(String awsAccessId,
String awsSecretKey)
awsAccessId - The your user key into AWSawsSecretKey - The secret string used to generate signatures for authentication.
public LoadBalancing(String awsAccessId,
String awsSecretKey,
boolean isSecure)
awsAccessId - The your user key into AWSawsSecretKey - The secret string used to generate signatures for authentication.isSecure - True if the data should be encrypted on the wire on the way to or from EC2.
public LoadBalancing(String awsAccessId,
String awsSecretKey,
boolean isSecure,
String server)
awsAccessId - The your user key into AWSawsSecretKey - The secret string used to generate signatures for authentication.isSecure - True if the data should be encrypted on the wire on the way to or from EC2.server - Which host to connect to. Usually, this will be elasticloadbalancing.amazonaws.com
public LoadBalancing(String awsAccessId,
String awsSecretKey,
boolean isSecure,
String server,
int port)
awsAccessId - The your user key into AWSawsSecretKey - The secret string used to generate signatures for authentication.isSecure - True if the data should be encrypted on the wire on the way to or from EC2.server - Which host to connect to. Usually, this will be elasticloadbalancing.amazonaws.comport - Which port to use.| Method Detail |
|---|
public List<String> enableAvailabilityZonesForLoadBalancer(String loadBalancerName,
List<String> availabilityZones)
throws LoadBalancingException
loadBalancerName - the name of the load balanceravailabilityZones - a list of availability zones to add
LoadBalancingException - wraps checked exceptions
public String createLoadBalancer(String loadBalancerName,
List<Listener> listeners,
List<String> availabilityZones)
throws LoadBalancingException
loadBalancerName - the name of the load balancerlisteners - the definition of protocol and portsavailabilityZones - a list of availability zones
LoadBalancingException - wraps checked exceptions
public HealthCheck configureHealthCheck(String loadBalancerName,
HealthCheck healthCheck)
throws LoadBalancingException
loadBalancerName - the name of the load balancerhealthCheck - the details of the healthcheck
LoadBalancingException - wraps checked exceptions
public void deleteLoadBalancer(String loadBalancerName)
throws LoadBalancingException
loadBalancerName - the name of the load balancer
LoadBalancingException - wraps checked exceptions
public List<String> deregisterInstancesFromLoadBalancer(String loadBalancerName,
List<String> instances)
throws LoadBalancingException
loadBalancerName - the name of the load balancerinstances - a list of instances to deregister from the load balancer
LoadBalancingException - wraps checked exceptions
public List<LoadBalancer> describeLoadBalancers()
throws LoadBalancingException
LoadBalancingException - wraps checked exceptions
public List<LoadBalancer> describeLoadBalancers(List<String> loadBalancerNames)
throws LoadBalancingException
loadBalancerNames - a list of load balancers to describe
LoadBalancingException - wraps checked exceptions
public List<InstanceState> describeInstanceHealth(String loadBalancerName)
throws LoadBalancingException
loadBalancerName - the name of the load balancer
LoadBalancingException - wraps checked exceptions
public List<InstanceState> describeInstanceHealth(String loadBalancerName,
List<String> instances)
throws LoadBalancingException
loadBalancerName - the name of the load balancerinstances - a list of instances to describe (null for all)
LoadBalancingException - wraps checked exceptions
public List<String> registerInstancesWithLoadBalancer(String loadBalancerName,
List<String> instances)
throws LoadBalancingException
loadBalancerName - the name of the load balancerinstances - a list of instance IDs registered with the load balancer
LoadBalancingException - wraps checked exceptions
public List<String> disableAvailabilityZonesForLoadBalancer(String loadBalancerName,
List<String> availabilityZones)
throws LoadBalancingException
loadBalancerName - the name of the load balanceravailabilityZones - a list of availability zones to disable
LoadBalancingException - wraps checked exceptions
protected <T> T makeRequestInt(org.apache.http.client.methods.HttpRequestBase method,
String action,
Map<String,String> params,
Class<T> respType)
throws LoadBalancingException
LoadBalancingException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||