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>
-
-
Field Summary
Fields Modifier and Type Field Description protected Logger
logger
protected SecurityGroupApi
securityClient
protected com.google.common.base.Predicate<RegionAndName>
securityGroupEventualConsistencyDelay
-
Constructor Summary
Constructors Constructor Description CreateSecurityGroupIfNeeded(EC2Api ec2Api, com.google.common.base.Predicate<RegionAndName> securityGroupEventualConsistencyDelay)
CreateSecurityGroupIfNeeded(SecurityGroupApi securityClient, com.google.common.base.Predicate<RegionAndName> securityGroupEventualConsistencyDelay)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
authorizeGroupToItself(String region, String name)
protected void
createIngressRuleForTCPPort(String region, String name, int port)
String
load(RegionAndName from)
-
-
-
Field Detail
-
logger
@Named("jclouds.compute") protected Logger logger
-
securityClient
protected final SecurityGroupApi securityClient
-
securityGroupEventualConsistencyDelay
protected final com.google.common.base.Predicate<RegionAndName> securityGroupEventualConsistencyDelay
-
-
Constructor Detail
-
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 Detail
-
load
public String load(RegionAndName from)
- Specified by:
load
in classcom.google.common.cache.CacheLoader<RegionAndName,String>
-
createIngressRuleForTCPPort
protected void createIngressRuleForTCPPort(String region, String name, int port)
-
-