@Singleton public class AWSEC2CreateSecurityGroupIfNeeded extends com.google.common.cache.CacheLoader<RegionAndName,String>
Modifier and Type | Field and 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 and 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) |
Modifier and Type | Method and Description |
---|---|
String |
load(RegionAndName from) |
@Named(value="jclouds.compute") protected Logger logger
protected final AWSSecurityGroupApi securityApi
protected final com.google.common.base.Predicate<RegionAndName> securityGroupEventualConsistencyDelay
@Inject public AWSEC2CreateSecurityGroupIfNeeded(AWSEC2Api ec2Api, @Named(value="SECGROUP_NAME_TO_ID") com.google.common.base.Function<String,String> groupNameToId, @Named(value="SECURITY") com.google.common.base.Predicate<RegionAndName> securityGroupEventualConsistencyDelay)
public AWSEC2CreateSecurityGroupIfNeeded(AWSSecurityGroupApi securityApi, @Named(value="SECGROUP_NAME_TO_ID") com.google.common.base.Function<String,String> groupNameToId, @Named(value="SECURITY") com.google.common.base.Predicate<RegionAndName> securityGroupEventualConsistencyDelay)
public String load(RegionAndName from)
load
in class com.google.common.cache.CacheLoader<RegionAndName,String>
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.