org.jclouds.aws.ec2.compute.strategy
Class AWSEC2CreateNodesInGroupThenAddToSet

java.lang.Object
  extended by org.jclouds.ec2.compute.strategy.EC2CreateNodesInGroupThenAddToSet
      extended by org.jclouds.aws.ec2.compute.strategy.AWSEC2CreateNodesInGroupThenAddToSet
All Implemented Interfaces:
CreateNodesInGroupThenAddToSet

@Singleton
public class AWSEC2CreateNodesInGroupThenAddToSet
extends EC2CreateNodesInGroupThenAddToSet

Author:
Adrian Cole

Field Summary
protected  Logger logger
           
 
Fields inherited from class org.jclouds.ec2.compute.strategy.EC2CreateNodesInGroupThenAddToSet
instanceToRegionAndName
 
Constructor Summary
protected AWSEC2CreateNodesInGroupThenAddToSet(AWSEC2Client client, AWSEC2AsyncClient aclient, boolean generateInstanceNames, javax.inject.Provider<TemplateBuilder> templateBuilderProvider, CreateKeyPairPlacementAndSecurityGroupsAsNeededAndReturnRunOptions createKeyPairAndSecurityGroupsAsNeededAndReturncustomize, AWSEC2InstancePresent instancePresent, com.google.common.base.Function<RunningInstance,NodeMetadata> runningInstanceToNodeMetadata, com.google.common.cache.Cache<RunningInstance,Credentials> instanceToCredentials, Map<String,Credentials> credentialStore, ComputeUtils utils, SpotInstanceRequestToAWSRunningInstance spotConverter)
           
 
Method Summary
 Iterable<? extends RunningInstance> addTagsToInstancesInRegion(Map<String,String> metadata, Iterable<? extends RunningInstance> iterable, String region, String group)
           
protected  Iterable<? extends RunningInstance> createNodesInRegionAndZone(String region, String zone, String group, int count, Template template, RunInstancesOptions instanceOptions)
           
 
Methods inherited from class org.jclouds.ec2.compute.strategy.EC2CreateNodesInGroupThenAddToSet
createKeyPairAndSecurityGroupsAsNeededThenRunInstances, execute, populateCredentials
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

@Named(value="jclouds.compute")
protected Logger logger
Constructor Detail

AWSEC2CreateNodesInGroupThenAddToSet

@Inject
protected AWSEC2CreateNodesInGroupThenAddToSet(AWSEC2Client client,
                                                      AWSEC2AsyncClient aclient,
                                                      @Named(value="jclouds.ec2.generate-instance-names")
                                                      boolean generateInstanceNames,
                                                      javax.inject.Provider<TemplateBuilder> templateBuilderProvider,
                                                      CreateKeyPairPlacementAndSecurityGroupsAsNeededAndReturnRunOptions createKeyPairAndSecurityGroupsAsNeededAndReturncustomize,
                                                      AWSEC2InstancePresent instancePresent,
                                                      com.google.common.base.Function<RunningInstance,NodeMetadata> runningInstanceToNodeMetadata,
                                                      com.google.common.cache.Cache<RunningInstance,Credentials> instanceToCredentials,
                                                      Map<String,Credentials> credentialStore,
                                                      ComputeUtils utils,
                                                      SpotInstanceRequestToAWSRunningInstance spotConverter)
Method Detail

createNodesInRegionAndZone

protected Iterable<? extends RunningInstance> createNodesInRegionAndZone(String region,
                                                                         String zone,
                                                                         String group,
                                                                         int count,
                                                                         Template template,
                                                                         RunInstancesOptions instanceOptions)
Overrides:
createNodesInRegionAndZone in class EC2CreateNodesInGroupThenAddToSet

addTagsToInstancesInRegion

public Iterable<? extends RunningInstance> addTagsToInstancesInRegion(Map<String,String> metadata,
                                                                      Iterable<? extends RunningInstance> iterable,
                                                                      String region,
                                                                      String group)


Copyright © 2009-2011 jclouds. All Rights Reserved.