org.apache.whirr.actions
Class DestroyClusterAction

java.lang.Object
  extended by org.apache.whirr.ClusterAction
      extended by org.apache.whirr.actions.DestroyClusterAction

public class DestroyClusterAction
extends ClusterAction

A ClusterAction for tearing down a running cluster and freeing up all its resources.


Constructor Summary
DestroyClusterAction(com.google.common.base.Function<ClusterSpec,org.jclouds.compute.ComputeServiceContext> getCompute)
           
 
Method Summary
 Cluster execute(ClusterSpec clusterSpec, Cluster cluster)
           
protected  String getAction()
           
 
Methods inherited from class org.apache.whirr.ClusterAction
getCompute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DestroyClusterAction

public DestroyClusterAction(com.google.common.base.Function<ClusterSpec,org.jclouds.compute.ComputeServiceContext> getCompute)
Method Detail

getAction

protected String getAction()
Specified by:
getAction in class ClusterAction

execute

public Cluster execute(ClusterSpec clusterSpec,
                       Cluster cluster)
                throws IOException,
                       InterruptedException
Specified by:
execute in class ClusterAction
Throws:
IOException
InterruptedException


Copyright © 2010-2011 The Apache Software Foundation. All Rights Reserved.