@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, setRecursive
getConf, setConf
protected FsCommand()
protected FsCommand(Configuration conf)
public static void registerCommands(CommandFactory factory)
factory
- where to register the classpublic String getCommandName()
getCommandName
in class Command
protected void run(Path path) throws IOException
Command
run
in class Command
path
- the input pathIOException
- if any error occurs@Deprecated public int runAll()
Command#run(String...argv)
Command
Copyright © 2013 Apache Software Foundation. All rights reserved.