Package alluxio.cli.fsadmin.pathconf
Class ShowCommand
- java.lang.Object
-
- alluxio.cli.fsadmin.command.AbstractFsAdminCommand
-
- alluxio.cli.fsadmin.pathconf.ShowCommand
-
- All Implemented Interfaces:
alluxio.cli.Command,java.io.Closeable,java.lang.AutoCloseable
public final class ShowCommand extends AbstractFsAdminCommand
Show path level configurations.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.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringALL_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 ShowCommand(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)voidvalidateArgs(org.apache.commons.cli.CommandLine cl)
-
-
-
Field Detail
-
ALL_OPTION_NAME
public static final java.lang.String ALL_OPTION_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ShowCommand
public ShowCommand(Context context, alluxio.conf.AlluxioConfiguration alluxioConf)
- Parameters:
context- fsadmin command contextalluxioConf- Alluxio configuration
-
-
Method Detail
-
getCommandName
public java.lang.String getCommandName()
-
getOptions
public org.apache.commons.cli.Options getOptions()
-
validateArgs
public void validateArgs(org.apache.commons.cli.CommandLine cl) throws alluxio.exception.status.InvalidArgumentException- Throws:
alluxio.exception.status.InvalidArgumentException
-
run
public int run(org.apache.commons.cli.CommandLine cl) throws java.io.IOException- Throws:
java.io.IOException
-
getUsage
public java.lang.String getUsage()
-
description
public static java.lang.String description()
- Returns:
- command's description
-
getDescription
public java.lang.String getDescription()
-
-