org.apache.whirr.cli
Class Command

java.lang.Object
  extended by org.apache.whirr.cli.Command
Direct Known Subclasses:
AbstractClusterSpecCommand, VersionCommand

public abstract class Command
extends Object

A CLI command.


Constructor Summary
Command(String name, String description)
           
 
Method Summary
 String getDescription()
           
 String getName()
           
abstract  int run(InputStream in, PrintStream out, PrintStream err, List<String> args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Command

public Command(String name,
               String description)
Method Detail

getName

public String getName()

getDescription

public String getDescription()

run

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


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