org.jclouds.aws.ec2.compute.functions
Class PresentSpotRequestsAndInstances
java.lang.Object
org.jclouds.ec2.compute.functions.PresentInstances
org.jclouds.aws.ec2.compute.functions.PresentSpotRequestsAndInstances
- All Implemented Interfaces:
- com.google.common.base.Function<Set<org.jclouds.ec2.compute.domain.RegionAndName>,Set<org.jclouds.ec2.domain.RunningInstance>>
@Singleton
public class PresentSpotRequestsAndInstances
- extends org.jclouds.ec2.compute.functions.PresentInstances
returns either the instances present in the list, or spot instances, if they ids start with sir-. Makes a
single rest call per aggregate on region.
| Fields inherited from class org.jclouds.ec2.compute.functions.PresentInstances |
logger |
|
Method Summary |
Set<org.jclouds.ec2.domain.RunningInstance> |
apply(Set<org.jclouds.ec2.compute.domain.RegionAndName> regionAndIds)
|
protected Set<org.jclouds.ec2.domain.RunningInstance> |
getSpots(Set<org.jclouds.ec2.compute.domain.RegionAndName> regionAndIds)
|
String |
toString()
|
| Methods inherited from interface com.google.common.base.Function |
equals |
PresentSpotRequestsAndInstances
@Inject
public PresentSpotRequestsAndInstances(AWSEC2Api client,
com.google.common.base.Function<SpotInstanceRequest,AWSRunningInstance> spotConverter)
apply
public Set<org.jclouds.ec2.domain.RunningInstance> apply(Set<org.jclouds.ec2.compute.domain.RegionAndName> regionAndIds)
- Specified by:
apply in interface com.google.common.base.Function<Set<org.jclouds.ec2.compute.domain.RegionAndName>,Set<org.jclouds.ec2.domain.RunningInstance>>- Overrides:
apply in class org.jclouds.ec2.compute.functions.PresentInstances
getSpots
protected Set<org.jclouds.ec2.domain.RunningInstance> getSpots(Set<org.jclouds.ec2.compute.domain.RegionAndName> regionAndIds)
toString
public String toString()
- Overrides:
toString in class org.jclouds.ec2.compute.functions.PresentInstances
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.