@Singleton public class PresentSpotRequestsAndInstances extends PresentInstances
sir-
. Makes a
single rest call per aggregate on region.logger
Constructor and Description |
---|
PresentSpotRequestsAndInstances(AWSEC2Api client,
com.google.common.base.Function<SpotInstanceRequest,AWSRunningInstance> spotConverter) |
Modifier and Type | Method and Description |
---|---|
Set<RunningInstance> |
apply(Set<RegionAndName> regionAndIds) |
protected Set<RunningInstance> |
getSpots(Set<RegionAndName> regionAndIds) |
String |
toString() |
@Inject public PresentSpotRequestsAndInstances(AWSEC2Api client, com.google.common.base.Function<SpotInstanceRequest,AWSRunningInstance> spotConverter)
public Set<RunningInstance> apply(Set<RegionAndName> regionAndIds)
apply
in interface com.google.common.base.Function<Set<RegionAndName>,Set<RunningInstance>>
apply
in class PresentInstances
protected Set<RunningInstance> getSpots(Set<RegionAndName> regionAndIds)
public String toString()
toString
in class PresentInstances
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.