Package org.jclouds.ec2.compute.loaders
Class CreateSecurityGroupIfNeeded
java.lang.Object
com.google.common.cache.CacheLoader<RegionAndName,String>
org.jclouds.ec2.compute.loaders.CreateSecurityGroupIfNeeded
- Direct Known Subclasses:
NovaCreateSecurityGroupIfNeeded
@Singleton
public class CreateSecurityGroupIfNeeded
extends com.google.common.cache.CacheLoader<RegionAndName,String>
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.common.cache.CacheLoader
com.google.common.cache.CacheLoader.InvalidCacheLoadException, com.google.common.cache.CacheLoader.UnsupportedLoadingOperationException -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Loggerprotected final SecurityGroupApiprotected final com.google.common.base.Predicate<RegionAndName> -
Constructor Summary
ConstructorsConstructorDescriptionCreateSecurityGroupIfNeeded(EC2Api ec2Api, com.google.common.base.Predicate<RegionAndName> securityGroupEventualConsistencyDelay) CreateSecurityGroupIfNeeded(SecurityGroupApi securityClient, com.google.common.base.Predicate<RegionAndName> securityGroupEventualConsistencyDelay) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidauthorizeGroupToItself(String region, String name) protected voidcreateIngressRuleForTCPPort(String region, String name, int port) load(RegionAndName from) Methods inherited from class com.google.common.cache.CacheLoader
asyncReloading, from, from, loadAll, reload
-
Field Details
-
logger
-
securityClient
-
securityGroupEventualConsistencyDelay
protected final com.google.common.base.Predicate<RegionAndName> securityGroupEventualConsistencyDelay
-
-
Constructor Details
-
CreateSecurityGroupIfNeeded
@Inject public CreateSecurityGroupIfNeeded(EC2Api ec2Api, @Named("SECURITY") com.google.common.base.Predicate<RegionAndName> securityGroupEventualConsistencyDelay) -
CreateSecurityGroupIfNeeded
public CreateSecurityGroupIfNeeded(SecurityGroupApi securityClient, @Named("SECURITY") com.google.common.base.Predicate<RegionAndName> securityGroupEventualConsistencyDelay)
-
-
Method Details
-
load
- Specified by:
loadin classcom.google.common.cache.CacheLoader<RegionAndName,String>
-
createIngressRuleForTCPPort
-
authorizeGroupToItself
-