Class AWSEC2CreateSecurityGroupIfNeeded
- java.lang.Object
-
- com.google.common.cache.CacheLoader<RegionAndName,String>
-
- org.jclouds.aws.ec2.compute.loaders.AWSEC2CreateSecurityGroupIfNeeded
-
@Singleton public class AWSEC2CreateSecurityGroupIfNeeded extends com.google.common.cache.CacheLoader<RegionAndName,String>
-
-
Field Summary
Fields Modifier and Type Field Description protected com.google.common.base.Function<String,String>
groupNameToId
protected Logger
logger
protected AWSSecurityGroupApi
securityApi
protected com.google.common.base.Predicate<RegionAndName>
securityGroupEventualConsistencyDelay
-
Constructor Summary
Constructors Constructor Description AWSEC2CreateSecurityGroupIfNeeded(AWSEC2Api ec2Api, com.google.common.base.Function<String,String> groupNameToId, com.google.common.base.Predicate<RegionAndName> securityGroupEventualConsistencyDelay)
AWSEC2CreateSecurityGroupIfNeeded(AWSSecurityGroupApi securityApi, com.google.common.base.Function<String,String> groupNameToId, com.google.common.base.Predicate<RegionAndName> securityGroupEventualConsistencyDelay)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
load(RegionAndName from)
-
-
-
Field Detail
-
logger
@Named("jclouds.compute") protected Logger logger
-
securityApi
protected final AWSSecurityGroupApi securityApi
-
securityGroupEventualConsistencyDelay
protected final com.google.common.base.Predicate<RegionAndName> securityGroupEventualConsistencyDelay
-
-
Constructor Detail
-
AWSEC2CreateSecurityGroupIfNeeded
@Inject public AWSEC2CreateSecurityGroupIfNeeded(AWSEC2Api ec2Api, @Named("SECGROUP_NAME_TO_ID") com.google.common.base.Function<String,String> groupNameToId, @Named("SECURITY") com.google.common.base.Predicate<RegionAndName> securityGroupEventualConsistencyDelay)
-
AWSEC2CreateSecurityGroupIfNeeded
public AWSEC2CreateSecurityGroupIfNeeded(AWSSecurityGroupApi securityApi, @Named("SECGROUP_NAME_TO_ID") com.google.common.base.Function<String,String> groupNameToId, @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>
-
-