org.jclouds.ec2.compute.functions
Class CreateSecurityGroupIfNeeded

java.lang.Object
  extended by com.google.common.cache.CacheLoader<RegionAndName,String>
      extended by org.jclouds.ec2.compute.functions.CreateSecurityGroupIfNeeded

@Singleton
public class CreateSecurityGroupIfNeeded
extends com.google.common.cache.CacheLoader<RegionAndName,String>

Author:
Adrian Cole

Field Summary
protected  Logger logger
           
protected  SecurityGroupClient securityClient
           
protected  com.google.common.base.Predicate<RegionAndName> securityGroupEventualConsistencyDelay
           
 
Constructor Summary
CreateSecurityGroupIfNeeded(EC2Client ec2Client, com.google.common.base.Predicate<RegionAndName> securityGroupEventualConsistencyDelay)
           
CreateSecurityGroupIfNeeded(SecurityGroupClient securityClient, com.google.common.base.Predicate<RegionAndName> securityGroupEventualConsistencyDelay)
           
 
Method Summary
 String load(RegionAndName from)
           
 
Methods inherited from class com.google.common.cache.CacheLoader
from, from
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

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

securityClient

protected final SecurityGroupClient securityClient

securityGroupEventualConsistencyDelay

protected final com.google.common.base.Predicate<RegionAndName> securityGroupEventualConsistencyDelay
Constructor Detail

CreateSecurityGroupIfNeeded

@Inject
public CreateSecurityGroupIfNeeded(EC2Client ec2Client,
                                          @Named(value="SECURITY")
                                          com.google.common.base.Predicate<RegionAndName> securityGroupEventualConsistencyDelay)

CreateSecurityGroupIfNeeded

public CreateSecurityGroupIfNeeded(SecurityGroupClient securityClient,
                                   @Named(value="SECURITY")
                                   com.google.common.base.Predicate<RegionAndName> securityGroupEventualConsistencyDelay)
Method Detail

load

public String load(RegionAndName from)
Specified by:
load in class com.google.common.cache.CacheLoader<RegionAndName,String>


Copyright © 2009-2011 jclouds. All Rights Reserved.