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