@Singleton public class CreateSecurityGroupIfNeeded extends com.google.common.cache.CacheLoader<RegionAndName,String>
Modifier and Type | Field and Description |
---|---|
protected Logger |
logger |
protected SecurityGroupApi |
securityClient |
protected com.google.common.base.Predicate<RegionAndName> |
securityGroupEventualConsistencyDelay |
Constructor and Description |
---|
CreateSecurityGroupIfNeeded(EC2Api ec2Api,
com.google.common.base.Predicate<RegionAndName> securityGroupEventualConsistencyDelay) |
CreateSecurityGroupIfNeeded(SecurityGroupApi securityClient,
com.google.common.base.Predicate<RegionAndName> securityGroupEventualConsistencyDelay) |
Modifier and Type | Method and Description |
---|---|
protected void |
authorizeGroupToItself(String region,
String name) |
protected void |
createIngressRuleForTCPPort(String region,
String name,
int port) |
String |
load(RegionAndName from) |
@Named(value="jclouds.compute") protected Logger logger
protected final SecurityGroupApi securityClient
protected final com.google.common.base.Predicate<RegionAndName> securityGroupEventualConsistencyDelay
@Inject public CreateSecurityGroupIfNeeded(EC2Api ec2Api, @Named(value="SECURITY") com.google.common.base.Predicate<RegionAndName> securityGroupEventualConsistencyDelay)
public CreateSecurityGroupIfNeeded(SecurityGroupApi securityClient, @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>
protected void createIngressRuleForTCPPort(String region, String name, int port)
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.