Package alluxio.cli.fsadmin.command
Class ReportCommand
- java.lang.Object
-
- alluxio.cli.fsadmin.command.AbstractFsAdminCommand
-
- alluxio.cli.fsadmin.command.ReportCommand
-
- All Implemented Interfaces:
alluxio.cli.Command,java.io.Closeable,java.lang.AutoCloseable
@PublicApi public final class ReportCommand extends AbstractFsAdminCommand
Reports Alluxio running cluster information.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDECOMMISSIONED_OPTION_NAMEstatic java.lang.StringHELP_OPTION_NAMEstatic java.lang.StringLIVE_OPTION_NAMEstatic java.lang.StringLOST_OPTION_NAMEstatic java.lang.StringSPECIFIED_OPTION_NAME-
Fields inherited from class alluxio.cli.fsadmin.command.AbstractFsAdminCommand
mBlockClient, mFsClient, mJobMasterClient, mJobMasterJournalMasterClient, mMasterJournalMasterClient, mMetaClient, mMetaConfigClient, mMetricsClient, mPrintStream
-
-
Constructor Summary
Constructors Constructor Description ReportCommand(Context context, alluxio.conf.AlluxioConfiguration alluxioConf)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.Stringdescription()java.lang.StringgetCommandName()java.lang.StringgetDescription()org.apache.commons.cli.OptionsgetOptions()java.lang.StringgetUsage()intrun(org.apache.commons.cli.CommandLine cl)static java.lang.Stringusage()voidvalidateArgs(org.apache.commons.cli.CommandLine cl)
-
-
-
Field Detail
-
HELP_OPTION_NAME
public static final java.lang.String HELP_OPTION_NAME
- See Also:
- Constant Field Values
-
LIVE_OPTION_NAME
public static final java.lang.String LIVE_OPTION_NAME
- See Also:
- Constant Field Values
-
LOST_OPTION_NAME
public static final java.lang.String LOST_OPTION_NAME
- See Also:
- Constant Field Values
-
DECOMMISSIONED_OPTION_NAME
public static final java.lang.String DECOMMISSIONED_OPTION_NAME
- See Also:
- Constant Field Values
-
SPECIFIED_OPTION_NAME
public static final java.lang.String SPECIFIED_OPTION_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ReportCommand
public ReportCommand(Context context, alluxio.conf.AlluxioConfiguration alluxioConf)
- Parameters:
context- fsadmin command contextalluxioConf- Alluxio configuration
-
-
Method Detail
-
getCommandName
public java.lang.String getCommandName()
-
run
public int run(org.apache.commons.cli.CommandLine cl) throws java.io.IOException- Throws:
java.io.IOException
-
getOptions
public org.apache.commons.cli.Options getOptions()
-
getUsage
public java.lang.String getUsage()
-
usage
public static java.lang.String usage()
- Returns:
- the usage for the report command
-
getDescription
public java.lang.String getDescription()
-
description
public static java.lang.String description()
- Returns:
- the description for the report command
-
validateArgs
public void validateArgs(org.apache.commons.cli.CommandLine cl) throws alluxio.exception.status.InvalidArgumentException- Throws:
alluxio.exception.status.InvalidArgumentException
-
-