Class CreateKeyPairPlacementAndSecurityGroupsAsNeededAndReturnRunOptions
- java.lang.Object
-
- org.jclouds.ec2.compute.strategy.CreateKeyPairAndSecurityGroupsAsNeededAndReturnRunOptions
-
- org.jclouds.aws.ec2.compute.strategy.CreateKeyPairPlacementAndSecurityGroupsAsNeededAndReturnRunOptions
-
@Singleton public class CreateKeyPairPlacementAndSecurityGroupsAsNeededAndReturnRunOptions extends CreateKeyPairAndSecurityGroupsAsNeededAndReturnRunOptions
-
-
Field Summary
Fields Modifier and Type Field Description static com.google.common.base.Predicate<TemplateOptions>
doesntNeedSshAfterImportingPublicKey
static com.google.common.base.Predicate<TemplateOptions>
hasLoginCredential
static com.google.common.base.Predicate<TemplateOptions>
hasPublicKeyMaterial
protected Logger
logger
-
Fields inherited from class org.jclouds.ec2.compute.strategy.CreateKeyPairAndSecurityGroupsAsNeededAndReturnRunOptions
credentialsMap, makeKeyPair, optionsProvider, securityGroupMap
-
-
Constructor Summary
Constructors Constructor Description CreateKeyPairPlacementAndSecurityGroupsAsNeededAndReturnRunOptions(com.google.common.base.Function<RegionAndName,KeyPair> makeKeyPair, ConcurrentMap<RegionAndName,KeyPair> credentialsMap, com.google.common.cache.LoadingCache<RegionAndName,String> securityGroupMap, javax.inject.Provider<RunInstancesOptions> optionsProvider, com.google.common.cache.LoadingCache<RegionAndName,String> placementGroupMap, CreatePlacementGroupIfNeeded createPlacementGroupIfNeeded, com.google.common.base.Function<RegionNameAndPublicKeyMaterial,KeyPair> importExistingKeyPair, GroupNamingConvention.Factory namingConvention, AWSEC2Api awsEC2Api)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addSecurityGroups(String region, String group, Template template, RunInstancesOptions instanceOptions)
String
createNewKeyPairUnlessUserSpecifiedOtherwise(String region, String group, TemplateOptions options)
AWSRunInstancesOptions
execute(String region, String group, Template template)
protected boolean
userSpecifiedTheirOwnGroups(TemplateOptions options)
-
Methods inherited from class org.jclouds.ec2.compute.strategy.CreateKeyPairAndSecurityGroupsAsNeededAndReturnRunOptions
createOrImportKeyPair, getOptionsProvider, getSecurityGroupsForTagAndOptions
-
-
-
-
Field Detail
-
logger
@Named("jclouds.compute") protected Logger logger
-
hasPublicKeyMaterial
public static final com.google.common.base.Predicate<TemplateOptions> hasPublicKeyMaterial
-
doesntNeedSshAfterImportingPublicKey
public static final com.google.common.base.Predicate<TemplateOptions> doesntNeedSshAfterImportingPublicKey
-
hasLoginCredential
public static final com.google.common.base.Predicate<TemplateOptions> hasLoginCredential
-
-
Constructor Detail
-
CreateKeyPairPlacementAndSecurityGroupsAsNeededAndReturnRunOptions
@Inject public CreateKeyPairPlacementAndSecurityGroupsAsNeededAndReturnRunOptions(com.google.common.base.Function<RegionAndName,KeyPair> makeKeyPair, ConcurrentMap<RegionAndName,KeyPair> credentialsMap, @Named("SECURITY") com.google.common.cache.LoadingCache<RegionAndName,String> securityGroupMap, javax.inject.Provider<RunInstancesOptions> optionsProvider, @Named("PLACEMENT") com.google.common.cache.LoadingCache<RegionAndName,String> placementGroupMap, CreatePlacementGroupIfNeeded createPlacementGroupIfNeeded, com.google.common.base.Function<RegionNameAndPublicKeyMaterial,KeyPair> importExistingKeyPair, GroupNamingConvention.Factory namingConvention, AWSEC2Api awsEC2Api)
-
-
Method Detail
-
execute
public AWSRunInstancesOptions execute(String region, String group, Template template)
- Overrides:
execute
in classCreateKeyPairAndSecurityGroupsAsNeededAndReturnRunOptions
-
createNewKeyPairUnlessUserSpecifiedOtherwise
public String createNewKeyPairUnlessUserSpecifiedOtherwise(String region, String group, TemplateOptions options)
-
userSpecifiedTheirOwnGroups
protected boolean userSpecifiedTheirOwnGroups(TemplateOptions options)
- Overrides:
userSpecifiedTheirOwnGroups
in classCreateKeyPairAndSecurityGroupsAsNeededAndReturnRunOptions
-
addSecurityGroups
protected void addSecurityGroups(String region, String group, Template template, RunInstancesOptions instanceOptions)
- Overrides:
addSecurityGroups
in classCreateKeyPairAndSecurityGroupsAsNeededAndReturnRunOptions
-
-