public abstract class ExecuteShellCollectInfoCommand extends AbstractCollectInfoCommand
Modifier and Type | Field and Description |
---|---|
protected Map<String,ShellCommand> |
mCommands |
protected Map<String,ShellCommand> |
mCommandsAlt |
mFsContext, mWorkingDirPath
Constructor and Description |
---|
ExecuteShellCollectInfoCommand(FileSystemContext fsContext)
Creates a new instance of
ExecuteShellCollectInfoCommand . |
Modifier and Type | Method and Description |
---|---|
protected void |
registerCommand(String name,
ShellCommand cmd,
ShellCommand alternativeCmd) |
protected abstract void |
registerCommands() |
int |
run(org.apache.commons.cli.CommandLine cl)
Runs the command.
|
generateOutputFile, getWorkingDirectory, validateArgs
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, getCommandName, getDescription, getOptions, getSubCommands, getUsage, hasSubCommand, parseAndValidateArgs
protected Map<String,ShellCommand> mCommands
protected Map<String,ShellCommand> mCommandsAlt
public ExecuteShellCollectInfoCommand(FileSystemContext fsContext)
ExecuteShellCollectInfoCommand
.fsContext
- the FileSystemContext
to execute inprotected abstract void registerCommands()
protected void registerCommand(String name, ShellCommand cmd, ShellCommand alternativeCmd)
public int run(org.apache.commons.cli.CommandLine cl) throws AlluxioException, IOException
Command
cl
- the parsed command line for the argumentsAlluxioException
IOException
Copyright © 2023. All Rights Reserved.