Package org.jclouds.aws.ec2.functions
Class CreatePlacementGroupIfNeeded
- java.lang.Object
-
- com.google.common.cache.CacheLoader<RegionAndName,String>
-
- org.jclouds.aws.ec2.functions.CreatePlacementGroupIfNeeded
-
@Singleton public class CreatePlacementGroupIfNeeded extends com.google.common.cache.CacheLoader<RegionAndName,String>
-
-
Field Summary
Fields Modifier and Type Field Description protected AWSEC2Api
ec2Api
protected Logger
logger
protected com.google.common.base.Predicate<PlacementGroup>
placementGroupAvailable
-
Constructor Summary
Constructors Constructor Description CreatePlacementGroupIfNeeded(AWSEC2Api ec2Api, com.google.common.base.Predicate<PlacementGroup> placementGroupAvailable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
load(RegionAndName from)
-
-
-
Field Detail
-
logger
@Named("jclouds.compute") protected Logger logger
-
ec2Api
protected final AWSEC2Api ec2Api
-
placementGroupAvailable
protected final com.google.common.base.Predicate<PlacementGroup> placementGroupAvailable
-
-
Constructor Detail
-
CreatePlacementGroupIfNeeded
@Inject public CreatePlacementGroupIfNeeded(AWSEC2Api ec2Api, @Named("AVAILABLE") com.google.common.base.Predicate<PlacementGroup> placementGroupAvailable)
-
-
Method Detail
-
load
public String load(RegionAndName from)
- Specified by:
load
in classcom.google.common.cache.CacheLoader<RegionAndName,String>
-
-