public class SecurityGroupRuleToIpPermission extends Object implements com.google.common.base.Function<SecurityGroupRule,IpPermission>
Modifier and Type | Field and Description |
---|---|
protected com.google.common.base.Supplier<Map<String,Location>> |
locationIndex |
protected Logger |
logger |
protected com.google.common.base.Predicate<AtomicReference<RegionAndName>> |
returnSecurityGroupExistsInRegion |
Constructor and Description |
---|
SecurityGroupRuleToIpPermission(com.google.common.base.Predicate<AtomicReference<RegionAndName>> returnSecurityGroupExistsInRegion,
com.google.common.base.Supplier<Map<String,Location>> locationIndex,
com.google.common.cache.LoadingCache<RegionAndName,SecurityGroupInRegion> groupMap) |
Modifier and Type | Method and Description |
---|---|
IpPermission |
apply(SecurityGroupRule rule) |
protected com.google.common.base.Predicate<String> |
isSecurityGroupInRegion(String groupName) |
@Named(value="jclouds.compute") protected Logger logger
protected final com.google.common.base.Predicate<AtomicReference<RegionAndName>> returnSecurityGroupExistsInRegion
@Inject public SecurityGroupRuleToIpPermission(@Named(value="SECURITYGROUP_PRESENT") com.google.common.base.Predicate<AtomicReference<RegionAndName>> returnSecurityGroupExistsInRegion, com.google.common.base.Supplier<Map<String,Location>> locationIndex, com.google.common.cache.LoadingCache<RegionAndName,SecurityGroupInRegion> groupMap)
public IpPermission apply(SecurityGroupRule rule)
apply
in interface com.google.common.base.Function<SecurityGroupRule,IpPermission>
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.