@Singleton public class AWSEC2ListNodesStrategy extends EC2ListNodesStrategy
Modifier and Type | Field and Description |
---|---|
protected AWSEC2Api |
client |
protected SpotInstanceRequestToAWSRunningInstance |
spotConverter |
logger, maxTime, regions, runningInstanceToNodeMetadata, userExecutor
Modifier | Constructor and 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) |
Modifier and Type | Method and 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) |
allInstancesInRegion, instancesByIdInRegion, listDetailsOnNodesMatching, listNodes, listNodesByIds, splitHandle
protected final AWSEC2Api client
protected final SpotInstanceRequestToAWSRunningInstance spotConverter
@Inject protected AWSEC2ListNodesStrategy(AWSEC2Api client, com.google.common.base.Supplier<Set<String>> regions, com.google.common.base.Function<RunningInstance,NodeMetadata> runningInstanceToNodeMetadata, @Named(value="jclouds.user-threads") com.google.common.util.concurrent.ListeningExecutorService userExecutor, SpotInstanceRequestToAWSRunningInstance spotConverter)
protected Iterable<? extends RunningInstance> pollRunningInstances()
pollRunningInstances
in class EC2ListNodesStrategy
protected Iterable<? extends RunningInstance> pollRunningInstancesByRegionsAndIds(com.google.common.collect.Multimap<String,String> idsByRegions)
pollRunningInstancesByRegionsAndIds
in class EC2ListNodesStrategy
protected com.google.common.base.Function<String,Set<SpotInstanceRequest>> allSpotInstancesInRegion()
protected com.google.common.base.Function<String,Set<SpotInstanceRequest>> spotInstancesByIdInRegion(com.google.common.collect.Multimap<String,String> idsByRegions)
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.