@Singleton public class CreateKeyPairPlacementAndSecurityGroupsAsNeededAndReturnRunOptions extends CreateKeyPairAndSecurityGroupsAsNeededAndReturnRunOptions
Modifier and Type | Field and 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 |
credentialsMap, makeKeyPair, optionsProvider, securityGroupMap
Constructor and 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) |
Modifier and Type | Method and 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) |
createOrImportKeyPair, getOptionsProvider, getSecurityGroupsForTagAndOptions
@Named(value="jclouds.compute") protected Logger logger
public static final com.google.common.base.Predicate<TemplateOptions> hasPublicKeyMaterial
public static final com.google.common.base.Predicate<TemplateOptions> doesntNeedSshAfterImportingPublicKey
public static final com.google.common.base.Predicate<TemplateOptions> hasLoginCredential
@Inject public CreateKeyPairPlacementAndSecurityGroupsAsNeededAndReturnRunOptions(com.google.common.base.Function<RegionAndName,KeyPair> makeKeyPair, ConcurrentMap<RegionAndName,KeyPair> credentialsMap, @Named(value="SECURITY") com.google.common.cache.LoadingCache<RegionAndName,String> securityGroupMap, javax.inject.Provider<RunInstancesOptions> optionsProvider, @Named(value="PLACEMENT") com.google.common.cache.LoadingCache<RegionAndName,String> placementGroupMap, CreatePlacementGroupIfNeeded createPlacementGroupIfNeeded, com.google.common.base.Function<RegionNameAndPublicKeyMaterial,KeyPair> importExistingKeyPair, GroupNamingConvention.Factory namingConvention, AWSEC2Api awsEC2Api)
public AWSRunInstancesOptions execute(String region, String group, Template template)
execute
in class CreateKeyPairAndSecurityGroupsAsNeededAndReturnRunOptions
public String createNewKeyPairUnlessUserSpecifiedOtherwise(String region, String group, TemplateOptions options)
protected boolean userSpecifiedTheirOwnGroups(TemplateOptions options)
userSpecifiedTheirOwnGroups
in class CreateKeyPairAndSecurityGroupsAsNeededAndReturnRunOptions
protected void addSecurityGroups(String region, String group, Template template, RunInstancesOptions instanceOptions)
addSecurityGroups
in class CreateKeyPairAndSecurityGroupsAsNeededAndReturnRunOptions
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.