org.jclouds.ec2.compute.strategy
Class EC2DestroyNodeStrategy
java.lang.Object
org.jclouds.ec2.compute.strategy.EC2DestroyNodeStrategy
- All Implemented Interfaces:
- DestroyNodeStrategy
- Direct Known Subclasses:
- AWSEC2DestroyNodeStrategy
@Singleton
public class EC2DestroyNodeStrategy
- extends Object
- implements DestroyNodeStrategy
- Author:
- Adrian Cole
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
@Named(value="jclouds.compute")
protected Logger logger
client
protected final EC2Client client
getNode
protected final GetNodeMetadataStrategy getNode
EC2DestroyNodeStrategy
@Inject
protected EC2DestroyNodeStrategy(EC2Client client,
GetNodeMetadataStrategy getNode)
destroyNode
public NodeMetadata destroyNode(String id)
- Specified by:
destroyNode
in interface DestroyNodeStrategy
- Returns:
- null if the node wasn't found
destroyInstanceInRegion
protected void destroyInstanceInRegion(String region,
String instanceId)
Copyright © 2009-2011 jclouds. All Rights Reserved.