org.jclouds.ec2.compute.strategy
Class EC2DestroyNodeStrategy

java.lang.Object
  extended by 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

Field Summary
protected  EC2Client client
           
protected  GetNodeMetadataStrategy getNode
           
protected  Logger logger
           
 
Constructor Summary
protected EC2DestroyNodeStrategy(EC2Client client, GetNodeMetadataStrategy getNode)
           
 
Method Summary
protected  void destroyInstanceInRegion(String region, String instanceId)
           
 NodeMetadata destroyNode(String id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

@Named(value="jclouds.compute")
protected Logger logger

client

protected final EC2Client client

getNode

protected final GetNodeMetadataStrategy getNode
Constructor Detail

EC2DestroyNodeStrategy

@Inject
protected EC2DestroyNodeStrategy(EC2Client client,
                                        GetNodeMetadataStrategy getNode)
Method Detail

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.