@Singleton public class EC2GetNodeMetadataStrategy extends Object implements GetNodeMetadataStrategy
Modifier | Constructor and Description |
---|---|
protected |
EC2GetNodeMetadataStrategy(EC2Api client,
com.google.common.base.Function<RunningInstance,NodeMetadata> runningInstanceToNodeMetadata) |
Modifier and Type | Method and Description |
---|---|
NodeMetadata |
getNode(String id) |
RunningInstance |
getRunningInstanceInRegion(String region,
String id) |
@Inject protected EC2GetNodeMetadataStrategy(EC2Api client, com.google.common.base.Function<RunningInstance,NodeMetadata> runningInstanceToNodeMetadata)
public NodeMetadata getNode(String id)
getNode
in interface GetNodeMetadataStrategy
public RunningInstance getRunningInstanceInRegion(String region, String id)
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.