org.jclouds.openstack.nova.v2_0.compute.loaders
Class FindSecurityGroupOrCreate

java.lang.Object
  extended by com.google.common.cache.CacheLoader<ZoneAndName,SecurityGroupInZone>
      extended by org.jclouds.openstack.nova.v2_0.compute.loaders.FindSecurityGroupOrCreate

public class FindSecurityGroupOrCreate
extends com.google.common.cache.CacheLoader<ZoneAndName,SecurityGroupInZone>

Author:
Adrian Cole

Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.common.cache.CacheLoader
com.google.common.cache.CacheLoader.InvalidCacheLoadException
 
Field Summary
protected  com.google.common.base.Function<ZoneSecurityGroupNameAndPorts,SecurityGroupInZone> groupCreator
           
protected  com.google.common.base.Predicate<AtomicReference<ZoneAndName>> returnSecurityGroupExistsInZone
           
 
Constructor Summary
FindSecurityGroupOrCreate(com.google.common.base.Predicate<AtomicReference<ZoneAndName>> returnSecurityGroupExistsInZone, com.google.common.base.Function<ZoneSecurityGroupNameAndPorts,SecurityGroupInZone> groupCreator)
           
 
Method Summary
 SecurityGroupInZone load(ZoneAndName in)
           
 String toString()
           
 
Methods inherited from class com.google.common.cache.CacheLoader
from, from, loadAll, reload
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

returnSecurityGroupExistsInZone

protected final com.google.common.base.Predicate<AtomicReference<ZoneAndName>> returnSecurityGroupExistsInZone

groupCreator

protected final com.google.common.base.Function<ZoneSecurityGroupNameAndPorts,SecurityGroupInZone> groupCreator
Constructor Detail

FindSecurityGroupOrCreate

@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)
Method Detail

load

public SecurityGroupInZone load(ZoneAndName in)
Specified by:
load in class com.google.common.cache.CacheLoader<ZoneAndName,SecurityGroupInZone>

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2012 jclouds. All Rights Reserved.