public class FindSecurityGroupOrCreate extends com.google.common.cache.CacheLoader<ZoneAndName,SecurityGroupInZone>
Modifier and Type | Field and Description |
---|---|
protected com.google.common.base.Function<ZoneSecurityGroupNameAndPorts,SecurityGroupInZone> |
groupCreator |
protected com.google.common.base.Predicate<AtomicReference<ZoneAndName>> |
returnSecurityGroupExistsInZone |
Constructor and Description |
---|
FindSecurityGroupOrCreate(com.google.common.base.Predicate<AtomicReference<ZoneAndName>> returnSecurityGroupExistsInZone,
com.google.common.base.Function<ZoneSecurityGroupNameAndPorts,SecurityGroupInZone> groupCreator) |
Modifier and Type | Method and Description |
---|---|
SecurityGroupInZone |
load(ZoneAndName in) |
String |
toString() |
protected final com.google.common.base.Predicate<AtomicReference<ZoneAndName>> returnSecurityGroupExistsInZone
protected final com.google.common.base.Function<ZoneSecurityGroupNameAndPorts,SecurityGroupInZone> groupCreator
@Inject public FindSecurityGroupOrCreate(@Named(value="jclouds.openstack-nova.timeout.securitygroup-present") com.google.common.base.Predicate<AtomicReference<ZoneAndName>> returnSecurityGroupExistsInZone, com.google.common.base.Function<ZoneSecurityGroupNameAndPorts,SecurityGroupInZone> groupCreator)
public SecurityGroupInZone load(ZoneAndName in)
load
in class com.google.common.cache.CacheLoader<ZoneAndName,SecurityGroupInZone>
Copyright © 2009-2013 jclouds. All Rights Reserved.