org.apache.whirr.cli.command
Class CleanupClusterCommand

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

@Beta
public class CleanupClusterCommand
extends AbstractClusterCommand

A command to stop the cluster services


Field Summary
 
Fields inherited from class org.apache.whirr.command.AbstractClusterCommand
factory, parser, stateStoreFactory
 
Constructor Summary
CleanupClusterCommand()
           
CleanupClusterCommand(ClusterControllerFactory factory)
           
CleanupClusterCommand(ClusterControllerFactory factory, ClusterStateStoreFactory stateStoreFactory)
           
 
Method Summary
 void printUsage(PrintStream stream)
          Print a generic usage indication for commands
 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
 
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

CleanupClusterCommand

public CleanupClusterCommand()
                      throws IOException
Throws:
IOException

CleanupClusterCommand

public CleanupClusterCommand(ClusterControllerFactory factory)

CleanupClusterCommand

public CleanupClusterCommand(ClusterControllerFactory factory,
                             ClusterStateStoreFactory stateStoreFactory)
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

printUsage

public void printUsage(PrintStream stream)
                throws IOException
Description copied from class: AbstractClusterCommand
Print a generic usage indication for commands

Overrides:
printUsage in class AbstractClusterCommand
Throws:
IOException


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