public final class AddCommand extends AbstractFsAdminCommand
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PROPERTY_OPTION_NAME |
mBlockClient, mFsClient, mJobMasterClient, mJobMasterJournalMasterClient, mMasterJournalMasterClient, mMetaClient, mMetaConfigClient, mMetricsClient, mPrintStream| Constructor and Description |
|---|
AddCommand(Context context,
AlluxioConfiguration alluxioConf) |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
description() |
java.lang.String |
getCommandName() |
java.lang.String |
getDescription() |
org.apache.commons.cli.Options |
getOptions() |
java.lang.String |
getUsage() |
static java.lang.String |
nonClientScopePropertyException(PropertyKey key) |
int |
run(org.apache.commons.cli.CommandLine cl) |
void |
validateArgs(org.apache.commons.cli.CommandLine cl) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, getSubCommands, hasSubCommand, parseAndValidateArgspublic static final java.lang.String PROPERTY_OPTION_NAME
public AddCommand(Context context, AlluxioConfiguration alluxioConf)
context - fsadmin command contextalluxioConf - Alluxio configurationpublic java.lang.String getCommandName()
public org.apache.commons.cli.Options getOptions()
public void validateArgs(org.apache.commons.cli.CommandLine cl)
throws InvalidArgumentException
InvalidArgumentExceptionpublic int run(org.apache.commons.cli.CommandLine cl)
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String getUsage()
public static java.lang.String description()
public static java.lang.String nonClientScopePropertyException(PropertyKey key)
key - the property keypublic java.lang.String getDescription()
Copyright © 2022. All Rights Reserved.