org.jclouds.ec2.compute.strategy
Class EC2CreateNodesInGroupThenAddToSet
java.lang.Object
org.jclouds.ec2.compute.strategy.EC2CreateNodesInGroupThenAddToSet
- All Implemented Interfaces:
- CreateNodesInGroupThenAddToSet
- Direct Known Subclasses:
- AWSEC2CreateNodesInGroupThenAddToSet
@Singleton
public class EC2CreateNodesInGroupThenAddToSet
- extends Object
- implements CreateNodesInGroupThenAddToSet
creates futures that correlate to
- Author:
- Adrian Cole
Constructor Summary |
protected |
EC2CreateNodesInGroupThenAddToSet(EC2Client client,
javax.inject.Provider<TemplateBuilder> templateBuilderProvider,
CreateKeyPairAndSecurityGroupsAsNeededAndReturnRunOptions createKeyPairAndSecurityGroupsAsNeededAndReturncustomize,
InstancePresent instancePresent,
com.google.common.base.Function<RunningInstance,NodeMetadata> runningInstanceToNodeMetadata,
com.google.common.cache.Cache<RunningInstance,Credentials> instanceToCredentials,
Map<String,Credentials> credentialStore,
ComputeUtils utils)
|
Method Summary |
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
@Named(value="jclouds.compute")
protected Logger logger
instanceToRegionAndName
public static com.google.common.base.Function<RunningInstance,RegionAndName> instanceToRegionAndName
EC2CreateNodesInGroupThenAddToSet
@Inject
protected EC2CreateNodesInGroupThenAddToSet(EC2Client client,
javax.inject.Provider<TemplateBuilder> templateBuilderProvider,
CreateKeyPairAndSecurityGroupsAsNeededAndReturnRunOptions createKeyPairAndSecurityGroupsAsNeededAndReturncustomize,
InstancePresent instancePresent,
com.google.common.base.Function<RunningInstance,NodeMetadata> runningInstanceToNodeMetadata,
com.google.common.cache.Cache<RunningInstance,Credentials> instanceToCredentials,
Map<String,Credentials> credentialStore,
ComputeUtils utils)
execute
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)
- Specified by:
execute
in interface CreateNodesInGroupThenAddToSet
populateCredentials
protected void populateCredentials(Iterable<? extends RunningInstance> started)
createKeyPairAndSecurityGroupsAsNeededThenRunInstances
protected Iterable<? extends RunningInstance> createKeyPairAndSecurityGroupsAsNeededThenRunInstances(String group,
int count,
Template template)
createNodesInRegionAndZone
protected Iterable<? extends RunningInstance> createNodesInRegionAndZone(String region,
String zone,
String group,
int count,
Template template,
RunInstancesOptions instanceOptions)
Copyright © 2009-2011 jclouds. All Rights Reserved.