org.jclouds.aws.ec2.functions
Class CreatePlacementGroupIfNeeded

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

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

Author:
Adrian Cole

Field Summary
protected  AWSEC2Client ec2Client
           
protected  Logger logger
           
protected  com.google.common.base.Predicate<PlacementGroup> placementGroupAvailable
           
 
Constructor Summary
CreatePlacementGroupIfNeeded(AWSEC2Client ec2Client, com.google.common.base.Predicate<PlacementGroup> placementGroupAvailable)
           
 
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

ec2Client

protected final AWSEC2Client ec2Client

placementGroupAvailable

protected final com.google.common.base.Predicate<PlacementGroup> placementGroupAvailable
Constructor Detail

CreatePlacementGroupIfNeeded

@Inject
public CreatePlacementGroupIfNeeded(AWSEC2Client ec2Client,
                                           @Named(value="AVAILABLE")
                                           com.google.common.base.Predicate<PlacementGroup> placementGroupAvailable)
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.