@InterfaceAudience.Private @InterfaceStability.Evolving public abstract class FsCommand extends Command
| Modifier | Constructor and Description |
|---|---|
protected |
FsCommand() |
protected |
FsCommand(Configuration conf) |
| Modifier and Type | Method and Description |
|---|---|
String |
getCommandName() |
static void |
registerCommands(CommandFactory factory)
Register the command classes used by the fs subcommand
|
protected void |
run(Path path)
Execute the command on the input path
|
int |
runAll()
Deprecated.
use
Command#run(String...argv) |
displayError, displayError, displayWarning, exitCodeForError, expandArgument, expandArguments, getDepth, getDescription, getName, getReplacementCommand, getUsage, isDeprecated, isRecursive, postProcessPath, processArgument, processArguments, processNonexistentPath, processOptions, processPath, processPathArgument, processPaths, processRawArguments, recursePath, run, setName, setRecursivegetConf, setConfprotected FsCommand()
protected FsCommand(Configuration conf)
public static void registerCommands(CommandFactory factory)
factory - where to register the classpublic String getCommandName()
getCommandName in class Commandprotected void run(Path path) throws IOException
Commandrun in class Commandpath - the input pathIOException - if any error occurs@Deprecated public int runAll()
Command#run(String...argv)CommandCopyright © 2013 Apache Software Foundation. All rights reserved.