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 Logger
protected final SecurityGroupApi
protected 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 void
authorizeGroupToItself
(String region, String name) protected void
createIngressRuleForTCPPort
(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:
load
in classcom.google.common.cache.CacheLoader<RegionAndName,
String>
-
createIngressRuleForTCPPort
-
authorizeGroupToItself
-