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<ZoneAndName>> |
returnSecurityGroupExistsInZone |
Constructor and Description |
---|
SecurityGroupRuleToIpPermission(com.google.common.base.Predicate<AtomicReference<ZoneAndName>> returnSecurityGroupExistsInZone,
com.google.common.base.Supplier<Map<String,Location>> locationIndex,
com.google.common.cache.LoadingCache<ZoneAndName,SecurityGroupInZone> groupMap) |
Modifier and Type | Method and Description |
---|---|
IpPermission |
apply(SecurityGroupRule rule) |
protected com.google.common.base.Predicate<String> |
isSecurityGroupInZone(String groupName) |
@Named(value="jclouds.compute") protected Logger logger
protected final com.google.common.base.Predicate<AtomicReference<ZoneAndName>> returnSecurityGroupExistsInZone
@Inject public SecurityGroupRuleToIpPermission(@Named(value="SECURITYGROUP_PRESENT") com.google.common.base.Predicate<AtomicReference<ZoneAndName>> returnSecurityGroupExistsInZone, com.google.common.base.Supplier<Map<String,Location>> locationIndex, com.google.common.cache.LoadingCache<ZoneAndName,SecurityGroupInZone> groupMap)
public IpPermission apply(SecurityGroupRule rule)
apply
in interface com.google.common.base.Function<SecurityGroupRule,IpPermission>
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.