@Singleton public class EC2ListNodesStrategy extends Object implements ListNodesStrategy
Modifier and Type | Field and Description |
---|---|
protected EC2AsyncClient |
client |
protected ExecutorService |
executor |
protected Logger |
logger |
protected com.google.common.base.Supplier<Set<String>> |
regions |
protected com.google.common.base.Function<RunningInstance,NodeMetadata> |
runningInstanceToNodeMetadata |
Modifier | Constructor and Description |
---|---|
protected |
EC2ListNodesStrategy(EC2AsyncClient client,
com.google.common.base.Supplier<Set<String>> regions,
com.google.common.base.Function<RunningInstance,NodeMetadata> runningInstanceToNodeMetadata,
ExecutorService executor) |
Modifier and Type | Method and Description |
---|---|
Set<? extends NodeMetadata> |
listDetailsOnNodesMatching(com.google.common.base.Predicate<ComputeMetadata> filter) |
Set<? extends ComputeMetadata> |
listNodes() |
protected Iterable<? extends RunningInstance> |
pollRunningInstances() |
protected final EC2AsyncClient client
protected final com.google.common.base.Function<RunningInstance,NodeMetadata> runningInstanceToNodeMetadata
protected final ExecutorService executor
@Inject protected EC2ListNodesStrategy(EC2AsyncClient client, com.google.common.base.Supplier<Set<String>> regions, com.google.common.base.Function<RunningInstance,NodeMetadata> runningInstanceToNodeMetadata, @Named(value="jclouds.user-threads") ExecutorService executor)
public Set<? extends ComputeMetadata> listNodes()
listNodes
in interface ListNodesStrategy
public Set<? extends NodeMetadata> listDetailsOnNodesMatching(com.google.common.base.Predicate<ComputeMetadata> filter)
listDetailsOnNodesMatching
in interface ListNodesStrategy
protected Iterable<? extends RunningInstance> pollRunningInstances()
Copyright © 2009-2012 jclouds. All Rights Reserved.