@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,
CreateKeyPairAndSecurityGroupsAsNeededAndReturnRunOptions createKeyPairAndSecurityGroupsAsNeededAndReturncustomize,
PresentInstances presentInstances,
com.google.common.base.Function<RunningInstance,NodeMetadata> runningInstanceToNodeMetadata,
com.google.common.cache.LoadingCache<RunningInstance,com.google.common.base.Optional<LoginCredentials>> instanceToCredentials,
Map<String,Credentials> credentialStore,
ComputeUtils utils) |
Modifier and Type | Method and Description |
---|---|
protected Set<RunningInstance> |
createNodesInRegionAndZone(String region,
String zone,
String group,
int count,
Template template,
RunInstancesOptions instanceOptions) |
Map<?,com.google.common.util.concurrent.ListenableFuture<Void>> |
execute(String group,
int count,
Template template,
Set<NodeMetadata> goodNodes,
Map<NodeMetadata,Exception> badNodes,
com.google.common.collect.Multimap<NodeMetadata,CustomizationResponse> customizationResponses) |
@Named(value="jclouds.compute") protected Logger logger
public static final 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="jclouds.compute.timeout.node-running") com.google.common.base.Predicate<AtomicReference<NodeMetadata>> nodeRunning, CreateKeyPairAndSecurityGroupsAsNeededAndReturnRunOptions createKeyPairAndSecurityGroupsAsNeededAndReturncustomize, PresentInstances presentInstances, com.google.common.base.Function<RunningInstance,NodeMetadata> runningInstanceToNodeMetadata, com.google.common.cache.LoadingCache<RunningInstance,com.google.common.base.Optional<LoginCredentials>> instanceToCredentials, Map<String,Credentials> credentialStore, ComputeUtils utils)
public Map<?,com.google.common.util.concurrent.ListenableFuture<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 Set<RunningInstance> createNodesInRegionAndZone(String region, String zone, String group, int count, Template template, RunInstancesOptions instanceOptions)
Copyright © 2009-2013 jclouds. All Rights Reserved.