Class AWSEC2ListNodesStrategy
- java.lang.Object
-
- org.jclouds.ec2.compute.strategy.EC2ListNodesStrategy
-
- org.jclouds.aws.ec2.compute.strategy.AWSEC2ListNodesStrategy
-
- All Implemented Interfaces:
ListNodesStrategy
@Singleton public class AWSEC2ListNodesStrategy extends EC2ListNodesStrategy
-
-
Field Summary
Fields Modifier and Type Field Description protected AWSEC2Api
client
protected SpotInstanceRequestToAWSRunningInstance
spotConverter
-
Fields inherited from class org.jclouds.ec2.compute.strategy.EC2ListNodesStrategy
logger, maxTime, regions, runningInstanceToNodeMetadata, userExecutor
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AWSEC2ListNodesStrategy(AWSEC2Api client, com.google.common.base.Supplier<Set<String>> regions, com.google.common.base.Function<RunningInstance,NodeMetadata> runningInstanceToNodeMetadata, com.google.common.util.concurrent.ListeningExecutorService userExecutor, SpotInstanceRequestToAWSRunningInstance spotConverter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.google.common.base.Function<String,Set<SpotInstanceRequest>>
allSpotInstancesInRegion()
protected Iterable<? extends RunningInstance>
pollRunningInstances()
protected Iterable<? extends RunningInstance>
pollRunningInstancesByRegionsAndIds(com.google.common.collect.Multimap<String,String> idsByRegions)
protected com.google.common.base.Function<String,Set<SpotInstanceRequest>>
spotInstancesByIdInRegion(com.google.common.collect.Multimap<String,String> idsByRegions)
-
Methods inherited from class org.jclouds.ec2.compute.strategy.EC2ListNodesStrategy
allInstancesInRegion, instancesByIdInRegion, listDetailsOnNodesMatching, listNodes, listNodesByIds, splitHandle
-
-
-
-
Field Detail
-
client
protected final AWSEC2Api client
-
spotConverter
protected final SpotInstanceRequestToAWSRunningInstance spotConverter
-
-
Constructor Detail
-
AWSEC2ListNodesStrategy
@Inject protected AWSEC2ListNodesStrategy(AWSEC2Api client, com.google.common.base.Supplier<Set<String>> regions, com.google.common.base.Function<RunningInstance,NodeMetadata> runningInstanceToNodeMetadata, @Named("jclouds.user-threads") com.google.common.util.concurrent.ListeningExecutorService userExecutor, SpotInstanceRequestToAWSRunningInstance spotConverter)
-
-
Method Detail
-
pollRunningInstances
protected Iterable<? extends RunningInstance> pollRunningInstances()
- Overrides:
pollRunningInstances
in classEC2ListNodesStrategy
-
pollRunningInstancesByRegionsAndIds
protected Iterable<? extends RunningInstance> pollRunningInstancesByRegionsAndIds(com.google.common.collect.Multimap<String,String> idsByRegions)
- Overrides:
pollRunningInstancesByRegionsAndIds
in classEC2ListNodesStrategy
-
allSpotInstancesInRegion
protected com.google.common.base.Function<String,Set<SpotInstanceRequest>> allSpotInstancesInRegion()
-
spotInstancesByIdInRegion
protected com.google.common.base.Function<String,Set<SpotInstanceRequest>> spotInstancesByIdInRegion(com.google.common.collect.Multimap<String,String> idsByRegions)
-
-