org.apache.whirr.cli.command
Class DestroyClusterCommand

java.lang.Object
  extended by org.apache.whirr.command.Command
      extended by org.apache.whirr.command.AbstractClusterCommand
          extended by org.apache.whirr.cli.command.DestroyClusterCommand

public class DestroyClusterCommand
extends AbstractClusterCommand

A command to destroy a running cluster (terminate and cleanup).


Field Summary
 
Fields inherited from class org.apache.whirr.command.AbstractClusterCommand
factory, parser, stateStoreFactory
 
Constructor Summary
DestroyClusterCommand()
           
DestroyClusterCommand(ClusterControllerFactory factory)
           
 
Method Summary
 int run(InputStream in, PrintStream out, PrintStream err, ClusterSpec clusterSpec)
           
 int run(InputStream in, PrintStream out, PrintStream err, List<String> args)
           
 
Methods inherited from class org.apache.whirr.command.AbstractClusterCommand
createClusterController, createClusterStateStore, getCluster, getClusterSpec, printErrorAndHelpHint, printProviderInfo, printUsage
 
Methods inherited from class org.apache.whirr.command.Command
getDescription, getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DestroyClusterCommand

public DestroyClusterCommand()
                      throws IOException
Throws:
IOException

DestroyClusterCommand

public DestroyClusterCommand(ClusterControllerFactory factory)
Method Detail

run

public int run(InputStream in,
               PrintStream out,
               PrintStream err,
               List<String> args)
        throws Exception
Specified by:
run in class Command
Throws:
Exception

run

public int run(InputStream in,
               PrintStream out,
               PrintStream err,
               ClusterSpec clusterSpec)
        throws Exception
Throws:
Exception


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