@Singleton public class AWSEC2CreateNodesInGroupThenAddToSet extends EC2CreateNodesInGroupThenAddToSet
instanceToRegionAndName
Modifier | Constructor and Description |
---|---|
protected |
AWSEC2CreateNodesInGroupThenAddToSet(AWSEC2Api client,
com.google.common.cache.LoadingCache<RegionAndName,String> elasticIpCache,
com.google.common.base.Predicate<AtomicReference<NodeMetadata>> nodeRunning,
boolean generateInstanceNames,
CreateKeyPairPlacementAndSecurityGroupsAsNeededAndReturnRunOptions createKeyPairAndSecurityGroupsAsNeededAndReturncustomize,
PresentSpotRequestsAndInstances instancePresent,
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,
SpotInstanceRequestToAWSRunningInstance spotConverter) |
Modifier and Type | Method and Description |
---|---|
protected Set<RunningInstance> |
createNodesInRegionAndZone(String region,
String zone,
String group,
int count,
Template template,
RunInstancesOptions instanceOptions) |
execute
@Inject protected AWSEC2CreateNodesInGroupThenAddToSet(AWSEC2Api 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, @Named(value="jclouds.ec2.generate-instance-names") boolean generateInstanceNames, CreateKeyPairPlacementAndSecurityGroupsAsNeededAndReturnRunOptions createKeyPairAndSecurityGroupsAsNeededAndReturncustomize, PresentSpotRequestsAndInstances instancePresent, 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, SpotInstanceRequestToAWSRunningInstance spotConverter)
protected Set<RunningInstance> createNodesInRegionAndZone(String region, String zone, String group, int count, Template template, RunInstancesOptions instanceOptions)
createNodesInRegionAndZone
in class EC2CreateNodesInGroupThenAddToSet
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.