org.jclouds.aws.ec2.functions
Class CreatePlacementGroupIfNeeded

java.lang.Object
  extended by org.jclouds.aws.ec2.functions.CreatePlacementGroupIfNeeded
All Implemented Interfaces:
com.google.common.base.Function<org.jclouds.ec2.compute.domain.RegionAndName,String>

@Singleton
public class CreatePlacementGroupIfNeeded
extends Object
implements com.google.common.base.Function<org.jclouds.ec2.compute.domain.RegionAndName,String>

Author:
Adrian Cole

Field Summary
protected  AWSEC2Client ec2Client
           
protected  org.jclouds.logging.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 apply(org.jclouds.ec2.compute.domain.RegionAndName from)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.google.common.base.Function
equals
 

Field Detail

logger

@Named(value="jclouds.compute")
protected org.jclouds.logging.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

apply

public String apply(org.jclouds.ec2.compute.domain.RegionAndName from)
Specified by:
apply in interface com.google.common.base.Function<org.jclouds.ec2.compute.domain.RegionAndName,String>


Copyright © 2009-2011 jclouds. All Rights Reserved.