public class QuorumInfoCommand extends AbstractFsAdminCommand
Modifier and Type | Field and Description |
---|---|
static String |
DOMAIN_OPTION_NAME |
static String |
OUTPUT_HEADER_DOMAIN |
static String |
OUTPUT_HEADER_LEADING_MASTER |
static String |
OUTPUT_HEADER_QUORUM_SIZE |
static String |
OUTPUT_SERVER_INFO |
mBlockClient, mFsClient, mJobMasterClient, mJobMasterJournalMasterClient, mMasterJournalMasterClient, mMetaClient, mMetricsClient, mPrintStream
Constructor and Description |
---|
QuorumInfoCommand(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.
|
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 DOMAIN_OPTION_NAME
public static final String OUTPUT_HEADER_DOMAIN
public static final String OUTPUT_HEADER_QUORUM_SIZE
public static final String OUTPUT_HEADER_LEADING_MASTER
public static final String OUTPUT_SERVER_INFO
public QuorumInfoCommand(Context context, AlluxioConfiguration alluxioConf)
context
- fsadmin command contextalluxioConf
- Alluxio configurationpublic static String description()
public int run(org.apache.commons.cli.CommandLine cl) throws IOException
Command
cl
- the parsed command line for the argumentsIOException
public String getCommandName()
Command
public String getUsage()
public String getDescription()
public void validateArgs(org.apache.commons.cli.CommandLine cl) throws InvalidArgumentException
Command
cl
- the parsed command line for the argumentsInvalidArgumentException
- when arguments are not validpublic org.apache.commons.cli.Options getOptions()
Options
of the commandCopyright © 2023. All Rights Reserved.