public abstract class Command extends Object
| Constructor and Description |
|---|
Command(String name,
String description) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription() |
String |
getName() |
abstract void |
printUsage(PrintStream stream) |
abstract int |
run(InputStream in,
PrintStream out,
PrintStream err,
List<String> args) |
public String getName()
public String getDescription()
public abstract int run(InputStream in, PrintStream out, PrintStream err, List<String> args) throws Exception
Exceptionpublic abstract void printUsage(PrintStream stream) throws IOException
IOExceptionCopyright © 2010–2016 Cloudera. All rights reserved.