org.jclouds.vcloud.compute.strategy
Class VCloudDestroyNodeStrategy

java.lang.Object
  extended by org.jclouds.vcloud.compute.strategy.VCloudDestroyNodeStrategy
All Implemented Interfaces:
DestroyNodeStrategy

@Singleton
public class VCloudDestroyNodeStrategy
extends Object
implements DestroyNodeStrategy

Author:
Adrian Cole

Field Summary
protected  VCloudClient client
           
protected  GetNodeMetadataStrategy getNode
           
protected  Logger logger
           
protected  com.google.common.base.Predicate<URI> successTester
           
 
Constructor Summary
protected VCloudDestroyNodeStrategy(com.google.common.base.Predicate<URI> successTester, VCloudClient client, GetNodeMetadataStrategy getNode)
           
 
Method Summary
 NodeMetadata destroyNode(String id)
           
 void waitForTask(Task task, VApp vAppResponse)
           
 
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

successTester

protected final com.google.common.base.Predicate<URI> successTester

client

protected final VCloudClient client

getNode

protected final GetNodeMetadataStrategy getNode
Constructor Detail

VCloudDestroyNodeStrategy

@Inject
protected VCloudDestroyNodeStrategy(com.google.common.base.Predicate<URI> successTester,
                                           VCloudClient 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

waitForTask

public void waitForTask(Task task,
                        VApp vAppResponse)


Copyright © 2009-2011 jclouds. All Rights Reserved.