public final class ShowCommand extends AbstractFsAdminCommand
It has two modes: 1. without option "--all", only show configurations for the specific path; 2. with option "--all", show all configurations applicable to the path.
For example, suppose there are two path level configurations: /a: property1=value1 /a/b: property2=value2 Then in mode 1, only property2=value2 will be shown for /a/b, but in mode 2, since /a is the prefix of /a/b, both properties will be shown for /a/b.
Modifier and Type | Field and Description |
---|---|
static String |
ALL_OPTION_NAME |
mBlockClient, mFsClient, mJobMasterClient, mJobMasterJournalMasterClient, mMasterJournalMasterClient, mMetaClient, mMetaConfigClient, mPrintStream
Constructor and Description |
---|
ShowCommand(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
getSubCommands, hasSubCommand, parseAndValidateArgs
public static final String ALL_OPTION_NAME
public ShowCommand(Context context, AlluxioConfiguration alluxioConf)
context
- fsadmin command contextalluxioConf
- Alluxio configurationpublic String getCommandName()
Command
public org.apache.commons.cli.Options getOptions()
Options
of the commandpublic void validateArgs(org.apache.commons.cli.CommandLine cl) throws InvalidArgumentException
Command
cl
- the parsed command line for the argumentsInvalidArgumentException
- when arguments are not validpublic int run(org.apache.commons.cli.CommandLine cl) throws IOException
Command
cl
- the parsed command line for the argumentsIOException
public String getUsage()
public static String description()
public String getDescription()
Copyright © 2023. All Rights Reserved.