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<RegionAndName>,
,Set<RunningInstance>> Function<Set<RegionAndName>,
Set<RunningInstance>>
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.-
Field Summary
Fields inherited from class org.jclouds.ec2.compute.functions.PresentInstances
logger
-
Constructor Summary
ConstructorsConstructorDescriptionPresentSpotRequestsAndInstances
(AWSEC2Api client, com.google.common.base.Function<SpotInstanceRequest, AWSRunningInstance> spotConverter) -
Method Summary
Modifier and TypeMethodDescriptionapply
(Set<RegionAndName> regionAndIds) protected Set
<RunningInstance> getSpots
(Set<RegionAndName> regionAndIds) toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.common.base.Function
equals
-
Constructor Details
-
PresentSpotRequestsAndInstances
@Inject public PresentSpotRequestsAndInstances(AWSEC2Api client, com.google.common.base.Function<SpotInstanceRequest, AWSRunningInstance> spotConverter)
-
-
Method Details
-
apply
- Specified by:
apply
in interfacecom.google.common.base.Function<Set<RegionAndName>,
Set<RunningInstance>> - Specified by:
apply
in interfaceFunction<Set<RegionAndName>,
Set<RunningInstance>> - Overrides:
apply
in classPresentInstances
-
getSpots
-
toString
- Overrides:
toString
in classPresentInstances
-