org.jclouds.aws.ec2.compute.loaders
Class AWSEC2CreateSecurityGroupIfNeeded

java.lang.Object
  extended by com.google.common.cache.CacheLoader<org.jclouds.ec2.compute.domain.RegionAndName,String>
      extended by org.jclouds.aws.ec2.compute.loaders.AWSEC2CreateSecurityGroupIfNeeded

@Singleton
public class AWSEC2CreateSecurityGroupIfNeeded
extends com.google.common.cache.CacheLoader<org.jclouds.ec2.compute.domain.RegionAndName,String>


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<String,String> groupNameToId
           
protected  org.jclouds.logging.Logger logger
           
protected  AWSSecurityGroupApi securityApi
           
protected  com.google.common.base.Predicate<org.jclouds.ec2.compute.domain.RegionAndName> securityGroupEventualConsistencyDelay
           
 
Constructor Summary
AWSEC2CreateSecurityGroupIfNeeded(AWSEC2Api ec2Api, com.google.common.base.Function<String,String> groupNameToId, com.google.common.base.Predicate<org.jclouds.ec2.compute.domain.RegionAndName> securityGroupEventualConsistencyDelay)
           
AWSEC2CreateSecurityGroupIfNeeded(AWSSecurityGroupApi securityApi, com.google.common.base.Function<String,String> groupNameToId, com.google.common.base.Predicate<org.jclouds.ec2.compute.domain.RegionAndName> securityGroupEventualConsistencyDelay)
           
 
Method Summary
 String load(org.jclouds.ec2.compute.domain.RegionAndName from)
           
 
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, toString, wait, wait, wait
 

Field Detail

logger

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

securityApi

protected final AWSSecurityGroupApi securityApi

securityGroupEventualConsistencyDelay

protected final com.google.common.base.Predicate<org.jclouds.ec2.compute.domain.RegionAndName> securityGroupEventualConsistencyDelay

groupNameToId

protected final com.google.common.base.Function<String,String> groupNameToId
Constructor Detail

AWSEC2CreateSecurityGroupIfNeeded

@Inject
public AWSEC2CreateSecurityGroupIfNeeded(AWSEC2Api ec2Api,
                                                @Named(value="SECGROUP_NAME_TO_ID")
                                                com.google.common.base.Function<String,String> groupNameToId,
                                                @Named(value="SECURITY")
                                                com.google.common.base.Predicate<org.jclouds.ec2.compute.domain.RegionAndName> securityGroupEventualConsistencyDelay)

AWSEC2CreateSecurityGroupIfNeeded

public AWSEC2CreateSecurityGroupIfNeeded(AWSSecurityGroupApi securityApi,
                                         @Named(value="SECGROUP_NAME_TO_ID")
                                         com.google.common.base.Function<String,String> groupNameToId,
                                         @Named(value="SECURITY")
                                         com.google.common.base.Predicate<org.jclouds.ec2.compute.domain.RegionAndName> securityGroupEventualConsistencyDelay)
Method Detail

load

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


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