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, waitMethods 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:
applyin interfacecom.google.common.base.Function<Set<RegionAndName>,Set<RunningInstance>> - Specified by:
applyin interfaceFunction<Set<RegionAndName>,Set<RunningInstance>> - Overrides:
applyin classPresentInstances
-
getSpots
-
toString
- Overrides:
toStringin classPresentInstances
-