ConfigurableConcat, CopyCommandWithMultiThread, Count, Find, FsShell.Help, FsShell.Usage, FsShellPermissions, TouchCommands, Truncate@Private @Evolving public abstract class FsCommand extends Command
args, COMMAND_DESCRIPTION_FIELD, COMMAND_NAME_FIELD, COMMAND_USAGE_FIELD, err, exceptions, exitCode, name, numErrors, out, recursive| Modifier | Constructor | Description |
|---|---|---|
protected |
FsCommand() |
|
protected |
FsCommand(Configuration conf) |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getCommandName() |
|
protected void |
processRawArguments(java.util.LinkedList<java.lang.String> args) |
Allows commands that don't use paths to handle the raw arguments.
|
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.
|
displayError, displayError, displayWarning, exitCodeForError, expandArgument, expandArguments, getCommandFactory, getDepth, getDescription, getListingGroupSize, getName, getReplacementCommand, getUsage, isDeprecated, isPathRecursable, isRecursive, isSorted, postProcessPath, processArgument, processArguments, processNonexistentPath, processOptions, processPath, processPathArgument, processPaths, processPaths, recursePath, run, run, setCommandFactory, setName, setRecursivegetConf, setConfprotected FsCommand()
protected FsCommand(Configuration conf)
public static void registerCommands(CommandFactory factory)
factory - where to register the classpublic java.lang.String getCommandName()
getCommandName in class Commandprotected void run(Path path) throws java.io.IOException
Command@Deprecated public int runAll()
Commandprotected void processRawArguments(java.util.LinkedList<java.lang.String> args)
throws java.io.IOException
CommandCommand.expandArguments(LinkedList) and pass the resulting list to
Command.processArguments(LinkedList)processRawArguments in class Commandargs - the list of argument stringsjava.io.IOException - raised on errors performing I/O.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.