@ThreadSafe @PublicApi public final class ListCommand extends AbstractFileSystemCommand
mFileSystem, mFsContext
Constructor and Description |
---|
ListCommand(FileSystemContext fsContext)
Creates the job list command.
|
Modifier and Type | Method and Description |
---|---|
String |
getCommandName()
Gets the command name as input from the shell.
|
String |
getDescription() |
String |
getUsage() |
int |
run(org.apache.commons.cli.CommandLine cl)
Runs the command.
|
void |
validateArgs(org.apache.commons.cli.CommandLine cl)
Checks if the arguments are valid or throw InvalidArgumentException.
|
processHeader, runPlainPath, runWildCardCmd
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, getOptions, getSubCommands, hasSubCommand, parseAndValidateArgs
public ListCommand(FileSystemContext fsContext)
fsContext
- the Alluxio filesystem clientpublic String getCommandName()
Command
public void validateArgs(org.apache.commons.cli.CommandLine cl) throws InvalidArgumentException
Command
cl
- the parsed command line for the argumentsInvalidArgumentException
- when arguments are not validpublic int run(org.apache.commons.cli.CommandLine cl)
Command
cl
- the parsed command line for the argumentspublic String getUsage()
public String getDescription()
Copyright © 2023. All Rights Reserved.