org.apache.whirr.actions
Class DestroyClusterAction

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

public class DestroyClusterAction
extends ScriptBasedClusterAction

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, com.google.common.cache.LoadingCache<String,ClusterActionHandler> handlerMap)
           
 
Method Summary
protected  String getAction()
           
protected  void postRunScriptsActions(Map<InstanceTemplate,ClusterActionEvent> eventMap)
           
 
Methods inherited from class org.apache.whirr.actions.ScriptBasedClusterAction
doAction, eventSpecificActions, execute, instanceIsNotInTarget, roleIsInTarget, runScripts, runStatementOnInstanceInCluster, shouldIgnoreInstanceTemplate
 
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,
                            com.google.common.cache.LoadingCache<String,ClusterActionHandler> handlerMap)
Method Detail

getAction

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

postRunScriptsActions

protected void postRunScriptsActions(Map<InstanceTemplate,ClusterActionEvent> eventMap)
                              throws IOException
Overrides:
postRunScriptsActions in class ScriptBasedClusterAction
Throws:
IOException


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