@Singleton public class EC2CreateNodesInGroupThenAddToSet extends Object implements CreateNodesInGroupThenAddToSet
Modifier and Type | Field and Description |
---|---|
static com.google.common.base.Function<RunningInstance,RegionAndName> |
instanceToRegionAndName |
protected Logger |
logger |
Modifier | Constructor and Description |
---|---|
protected |
EC2CreateNodesInGroupThenAddToSet(EC2Client client,
com.google.common.cache.LoadingCache<RegionAndName,String> elasticIpCache,
com.google.common.base.Predicate<AtomicReference<NodeMetadata>> nodeRunning,
Provider<TemplateBuilder> templateBuilderProvider,
CreateKeyPairAndSecurityGroupsAsNeededAndReturnRunOptions createKeyPairAndSecurityGroupsAsNeededAndReturncustomize,
InstancePresent instancePresent,
com.google.common.base.Function<RunningInstance,NodeMetadata> runningInstanceToNodeMetadata,
com.google.common.cache.LoadingCache<RunningInstance,Credentials> instanceToCredentials,
Map<String,Credentials> credentialStore,
ComputeUtils utils) |
Modifier and Type | Method and Description |
---|---|
protected Iterable<String> |
allocateElasticIpsInRegion(int count,
Template template) |
protected void |
assignElasticIpsToInstances(Iterable<String> ips,
Iterable<? extends RunningInstance> startedInstances) |
protected Iterable<? extends RunningInstance> |
createKeyPairAndSecurityGroupsAsNeededThenRunInstances(String group,
int count,
Template template) |
protected Iterable<? extends RunningInstance> |
createNodesInRegionAndZone(String region,
String zone,
String group,
int count,
Template template,
RunInstancesOptions instanceOptions) |
Map<?,Future<Void>> |
execute(String group,
int count,
Template template,
Set<NodeMetadata> goodNodes,
Map<NodeMetadata,Exception> badNodes,
com.google.common.collect.Multimap<NodeMetadata,CustomizationResponse> customizationResponses) |
protected void |
populateCredentials(Iterable<? extends RunningInstance> started) |
public static com.google.common.base.Function<RunningInstance,RegionAndName> instanceToRegionAndName
@Inject protected EC2CreateNodesInGroupThenAddToSet(EC2Client client, @Named(value="ELASTICIP") com.google.common.cache.LoadingCache<RegionAndName,String> elasticIpCache, @Named(value="NODE_RUNNING") com.google.common.base.Predicate<AtomicReference<NodeMetadata>> nodeRunning, Provider<TemplateBuilder> templateBuilderProvider, CreateKeyPairAndSecurityGroupsAsNeededAndReturnRunOptions createKeyPairAndSecurityGroupsAsNeededAndReturncustomize, InstancePresent instancePresent, com.google.common.base.Function<RunningInstance,NodeMetadata> runningInstanceToNodeMetadata, com.google.common.cache.LoadingCache<RunningInstance,Credentials> instanceToCredentials, Map<String,Credentials> credentialStore, ComputeUtils utils)
public Map<?,Future<Void>> execute(String group, int count, Template template, Set<NodeMetadata> goodNodes, Map<NodeMetadata,Exception> badNodes, com.google.common.collect.Multimap<NodeMetadata,CustomizationResponse> customizationResponses)
execute
in interface CreateNodesInGroupThenAddToSet
protected void populateCredentials(Iterable<? extends RunningInstance> started)
protected Iterable<String> allocateElasticIpsInRegion(int count, Template template)
protected void assignElasticIpsToInstances(Iterable<String> ips, Iterable<? extends RunningInstance> startedInstances)
protected Iterable<? extends RunningInstance> createKeyPairAndSecurityGroupsAsNeededThenRunInstances(String group, int count, Template template)
protected Iterable<? extends RunningInstance> createNodesInRegionAndZone(String region, String zone, String group, int count, Template template, RunInstancesOptions instanceOptions)
Copyright © 2009-2012 jclouds. All Rights Reserved.