org.jclouds.cloudstack.compute.loaders
Class FindSecurityGroupOrCreate

java.lang.Object
  extended by com.google.common.cache.CacheLoader<ZoneAndName,SecurityGroup>
      extended by org.jclouds.cloudstack.compute.loaders.FindSecurityGroupOrCreate

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


Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.common.cache.CacheLoader
com.google.common.cache.CacheLoader.InvalidCacheLoadException
 
Field Summary
protected  CloudStackApi client
           
protected  com.google.common.base.Function<ZoneSecurityGroupNamePortsCidrs,SecurityGroup> groupCreator
           
protected  org.jclouds.logging.Logger logger
           
 
Constructor Summary
FindSecurityGroupOrCreate(CloudStackApi client, com.google.common.base.Function<ZoneSecurityGroupNamePortsCidrs,SecurityGroup> groupCreator)
           
 
Method Summary
 SecurityGroup load(ZoneAndName in)
           
 String toString()
           
 
Methods inherited from class com.google.common.cache.CacheLoader
asyncReloading, from, from, loadAll, reload
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

logger

@Named(value="jclouds.compute")
protected org.jclouds.logging.Logger logger

client

protected final CloudStackApi client

groupCreator

protected final com.google.common.base.Function<ZoneSecurityGroupNamePortsCidrs,SecurityGroup> groupCreator
Constructor Detail

FindSecurityGroupOrCreate

@Inject
public FindSecurityGroupOrCreate(CloudStackApi client,
                                        com.google.common.base.Function<ZoneSecurityGroupNamePortsCidrs,SecurityGroup> groupCreator)
Method Detail

load

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

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.