org.jclouds.ec2.compute.strategy
Class CreateKeyPairAndSecurityGroupsAsNeededAndReturnRunOptions

java.lang.Object
  extended by org.jclouds.ec2.compute.strategy.CreateKeyPairAndSecurityGroupsAsNeededAndReturnRunOptions
Direct Known Subclasses:
CreateKeyPairPlacementAndSecurityGroupsAsNeededAndReturnRunOptions

@Singleton
public class CreateKeyPairAndSecurityGroupsAsNeededAndReturnRunOptions
extends Object

Author:
Adrian Cole

Field Summary
 ConcurrentMap<RegionAndName,KeyPair> credentialsMap
           
 com.google.common.base.Function<RegionAndName,KeyPair> makeKeyPair
           
 javax.inject.Provider<RunInstancesOptions> optionsProvider
           
 com.google.common.cache.Cache<RegionAndName,String> securityGroupMap
           
 
Constructor Summary
CreateKeyPairAndSecurityGroupsAsNeededAndReturnRunOptions(com.google.common.base.Function<RegionAndName,KeyPair> makeKeyPair, ConcurrentMap<RegionAndName,KeyPair> credentialsMap, com.google.common.cache.Cache<RegionAndName,String> securityGroupMap, javax.inject.Provider<RunInstancesOptions> optionsProvider)
           
 
Method Summary
protected  void addSecurityGroups(String region, String group, Template template, RunInstancesOptions instanceOptions)
           
 String createNewKeyPairUnlessUserSpecifiedOtherwise(String region, String group, TemplateOptions options)
           
protected  String createOrImportKeyPair(String region, String group, TemplateOptions options)
           
 RunInstancesOptions execute(String region, String group, Template template)
           
 javax.inject.Provider<RunInstancesOptions> getOptionsProvider()
           
 Set<String> getSecurityGroupsForTagAndOptions(String region, String group, TemplateOptions options)
           
protected  boolean userSpecifiedTheirOwnGroups(TemplateOptions options)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

makeKeyPair

public com.google.common.base.Function<RegionAndName,KeyPair> makeKeyPair

credentialsMap

public final ConcurrentMap<RegionAndName,KeyPair> credentialsMap

securityGroupMap

public final com.google.common.cache.Cache<RegionAndName,String> securityGroupMap

optionsProvider

public final javax.inject.Provider<RunInstancesOptions> optionsProvider
Constructor Detail

CreateKeyPairAndSecurityGroupsAsNeededAndReturnRunOptions

@Inject
public CreateKeyPairAndSecurityGroupsAsNeededAndReturnRunOptions(com.google.common.base.Function<RegionAndName,KeyPair> makeKeyPair,
                                                                        ConcurrentMap<RegionAndName,KeyPair> credentialsMap,
                                                                        @Named(value="SECURITY")
                                                                        com.google.common.cache.Cache<RegionAndName,String> securityGroupMap,
                                                                        javax.inject.Provider<RunInstancesOptions> optionsProvider)
Method Detail

execute

public RunInstancesOptions execute(String region,
                                   String group,
                                   Template template)

addSecurityGroups

protected void addSecurityGroups(String region,
                                 String group,
                                 Template template,
                                 RunInstancesOptions instanceOptions)

createNewKeyPairUnlessUserSpecifiedOtherwise

public String createNewKeyPairUnlessUserSpecifiedOtherwise(String region,
                                                           String group,
                                                           TemplateOptions options)

createOrImportKeyPair

protected String createOrImportKeyPair(String region,
                                       String group,
                                       TemplateOptions options)

getSecurityGroupsForTagAndOptions

public Set<String> getSecurityGroupsForTagAndOptions(String region,
                                                     @Nullable
                                                     String group,
                                                     TemplateOptions options)

userSpecifiedTheirOwnGroups

protected boolean userSpecifiedTheirOwnGroups(TemplateOptions options)

getOptionsProvider

public javax.inject.Provider<RunInstancesOptions> getOptionsProvider()


Copyright © 2009-2011 jclouds. All Rights Reserved.