public class EC2AutoScaler extends Object implements AutoScaler<EC2EnvironmentConfig>
Constructor and Description |
---|
EC2AutoScaler(int minNumWorkers,
int maxNumWorkers,
EC2EnvironmentConfig envConfig,
com.amazonaws.services.ec2.AmazonEC2 amazonEC2Client,
SimpleResourceManagementConfig config) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
EC2EnvironmentConfig |
getEnvConfig() |
int |
getMaxNumWorkers() |
int |
getMinNumWorkers() |
int |
hashCode() |
List<String> |
idToIpLookup(List<String> nodeIds)
Provides a lookup of node ids to ip addresses
|
List<String> |
ipToIdLookup(List<String> ips)
Provides a lookup of ip addresses to node ids
|
AutoScalingData |
provision() |
AutoScalingData |
terminate(List<String> ips) |
AutoScalingData |
terminateWithIds(List<String> ids) |
String |
toString() |
public EC2AutoScaler(int minNumWorkers, int maxNumWorkers, EC2EnvironmentConfig envConfig, com.amazonaws.services.ec2.AmazonEC2 amazonEC2Client, SimpleResourceManagementConfig config)
public int getMinNumWorkers()
getMinNumWorkers
in interface AutoScaler<EC2EnvironmentConfig>
public int getMaxNumWorkers()
getMaxNumWorkers
in interface AutoScaler<EC2EnvironmentConfig>
public EC2EnvironmentConfig getEnvConfig()
getEnvConfig
in interface AutoScaler<EC2EnvironmentConfig>
public AutoScalingData provision()
provision
in interface AutoScaler<EC2EnvironmentConfig>
public AutoScalingData terminate(List<String> ips)
terminate
in interface AutoScaler<EC2EnvironmentConfig>
public AutoScalingData terminateWithIds(List<String> ids)
terminateWithIds
in interface AutoScaler<EC2EnvironmentConfig>
public List<String> ipToIdLookup(List<String> ips)
AutoScaler
ipToIdLookup
in interface AutoScaler<EC2EnvironmentConfig>
ips
- - nodes IPspublic List<String> idToIpLookup(List<String> nodeIds)
AutoScaler
idToIpLookup
in interface AutoScaler<EC2EnvironmentConfig>
nodeIds
- - nodes idsCopyright © 2011–2015. All rights reserved.