@PublicApi public final class ReportCommand extends AbstractFsAdminCommand
Modifier and Type | Field and Description |
---|---|
static String |
DECOMMISSIONED_OPTION_NAME |
static String |
HELP_OPTION_NAME |
static String |
LIVE_OPTION_NAME |
static String |
LOST_OPTION_NAME |
static String |
SPECIFIED_OPTION_NAME |
mBlockClient, mFsClient, mJobMasterClient, mJobMasterJournalMasterClient, mMasterJournalMasterClient, mMetaClient, mMetaConfigClient, mMetricsClient, mPrintStream
Constructor and Description |
---|
ReportCommand(Context context,
AlluxioConfiguration alluxioConf) |
Modifier and Type | Method and Description |
---|---|
static String |
description() |
String |
getCommandName()
Gets the command name as input from the shell.
|
String |
getDescription() |
org.apache.commons.cli.Options |
getOptions() |
String |
getUsage() |
int |
run(org.apache.commons.cli.CommandLine cl)
Runs the command.
|
static String |
usage() |
void |
validateArgs(org.apache.commons.cli.CommandLine cl)
Checks if the arguments are valid or throw InvalidArgumentException.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, getSubCommands, hasSubCommand, parseAndValidateArgs
public static final String HELP_OPTION_NAME
public static final String LIVE_OPTION_NAME
public static final String LOST_OPTION_NAME
public static final String DECOMMISSIONED_OPTION_NAME
public static final String SPECIFIED_OPTION_NAME
public ReportCommand(Context context, AlluxioConfiguration alluxioConf)
context
- fsadmin command contextalluxioConf
- Alluxio configurationpublic String getCommandName()
Command
public int run(org.apache.commons.cli.CommandLine cl) throws IOException
Command
cl
- the parsed command line for the argumentsIOException
public org.apache.commons.cli.Options getOptions()
Options
of the commandpublic String getUsage()
public static String usage()
public String getDescription()
public static String description()
public void validateArgs(org.apache.commons.cli.CommandLine cl) throws InvalidArgumentException
Command
cl
- the parsed command line for the argumentsInvalidArgumentException
- when arguments are not validCopyright © 2023. All Rights Reserved.