public class CollectLogCommand extends AbstractCollectInfoCommand
Modifier and Type | Field and Description |
---|---|
static String |
COMMAND_NAME |
mFsContext, mWorkingDirPath
Constructor and Description |
---|
CollectLogCommand(FileSystemContext fsContext)
Creates a new instance of
CollectLogCommand . |
Modifier and Type | Method and Description |
---|---|
String |
getCommandName()
Gets the command name as input from the shell.
|
String |
getDescription() |
String |
getUsage() |
boolean |
hasSubCommand()
If a command has sub-commands, the first argument should be the sub-command's name,
all arguments and options will be parsed for the sub-command.
|
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, getOptions, getSubCommands, parseAndValidateArgs
public static final String COMMAND_NAME
public CollectLogCommand(FileSystemContext fsContext)
CollectLogCommand
.fsContext
- the FileSystemContext
to execute inpublic String getCommandName()
Command
public boolean hasSubCommand()
Command
public int run(org.apache.commons.cli.CommandLine cl) throws AlluxioException, IOException
Command
cl
- the parsed command line for the argumentsAlluxioException
IOException
public String getUsage()
public String getDescription()
Copyright © 2023. All Rights Reserved.