@Singleton public class EC2DestroyNodeStrategy extends Object implements DestroyNodeStrategy
Modifier and Type | Field and Description |
---|---|
protected EC2Api |
client |
protected com.google.common.cache.LoadingCache<RegionAndName,String> |
elasticIpCache |
protected GetNodeMetadataStrategy |
getNode |
protected Logger |
logger |
Modifier | Constructor and Description |
---|---|
protected |
EC2DestroyNodeStrategy(EC2Api client,
GetNodeMetadataStrategy getNode,
com.google.common.cache.LoadingCache<RegionAndName,String> elasticIpCache) |
Modifier and Type | Method and Description |
---|---|
protected void |
destroyInstanceInRegion(String instanceId,
String region) |
NodeMetadata |
destroyNode(String id) |
protected void |
releaseAnyPublicIpForInstanceInRegion(String instanceId,
String region) |
@Named(value="jclouds.compute") protected Logger logger
protected final EC2Api client
protected final GetNodeMetadataStrategy getNode
protected final com.google.common.cache.LoadingCache<RegionAndName,String> elasticIpCache
@Inject protected EC2DestroyNodeStrategy(EC2Api client, GetNodeMetadataStrategy getNode, @Named(value="ELASTICIP") com.google.common.cache.LoadingCache<RegionAndName,String> elasticIpCache)
public NodeMetadata destroyNode(String id)
destroyNode
in interface DestroyNodeStrategy
protected void releaseAnyPublicIpForInstanceInRegion(String instanceId, String region)
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.