Package alluxio.cli.bundler.command
Class ExecuteShellCollectInfoCommand
- java.lang.Object
-
- alluxio.cli.bundler.command.AbstractCollectInfoCommand
-
- alluxio.cli.bundler.command.ExecuteShellCollectInfoCommand
-
- All Implemented Interfaces:
alluxio.cli.Command,java.io.Closeable,java.lang.AutoCloseable
- Direct Known Subclasses:
CollectAlluxioInfoCommand,CollectEnvCommand
public abstract class ExecuteShellCollectInfoCommand extends AbstractCollectInfoCommand
Command to run a set of shell commands to get system information.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<java.lang.String,alluxio.shell.ShellCommand>mCommandsprotected java.util.Map<java.lang.String,alluxio.shell.ShellCommand>mCommandsAlt-
Fields inherited from class alluxio.cli.bundler.command.AbstractCollectInfoCommand
mFsContext, mWorkingDirPath
-
-
Constructor Summary
Constructors Constructor Description ExecuteShellCollectInfoCommand(alluxio.client.file.FileSystemContext fsContext)Creates a new instance ofExecuteShellCollectInfoCommand.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidregisterCommand(java.lang.String name, alluxio.shell.ShellCommand cmd, alluxio.shell.ShellCommand alternativeCmd)protected abstract voidregisterCommands()intrun(org.apache.commons.cli.CommandLine cl)-
Methods inherited from class alluxio.cli.bundler.command.AbstractCollectInfoCommand
generateOutputFile, getWorkingDirectory, validateArgs
-
-
-
-
Constructor Detail
-
ExecuteShellCollectInfoCommand
public ExecuteShellCollectInfoCommand(alluxio.client.file.FileSystemContext fsContext)
Creates a new instance ofExecuteShellCollectInfoCommand.- Parameters:
fsContext- theFileSystemContextto execute in
-
-
Method Detail
-
registerCommands
protected abstract void registerCommands()
-
registerCommand
protected void registerCommand(java.lang.String name, alluxio.shell.ShellCommand cmd, alluxio.shell.ShellCommand alternativeCmd)
-
run
public int run(org.apache.commons.cli.CommandLine cl) throws alluxio.exception.AlluxioException, java.io.IOException- Throws:
alluxio.exception.AlluxioExceptionjava.io.IOException
-
-