public abstract class AbstractTableCommand extends Object implements Command
TableShell
.Modifier and Type | Field and Description |
---|---|
protected TableMasterClient |
mClient |
protected AlluxioConfiguration |
mConf |
Constructor and Description |
---|
AbstractTableCommand(AlluxioConfiguration conf,
TableMasterClient client)
Creates a new instance of
AbstractTableCommand . |
Modifier and Type | Method and Description |
---|---|
abstract String |
getCommandName()
Gets the command name as input from the shell.
|
abstract int |
run(org.apache.commons.cli.CommandLine cl)
Runs the command.
|
abstract 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, getDescription, getOptions, getSubCommands, getUsage, hasSubCommand, parseAndValidateArgs
protected final AlluxioConfiguration mConf
protected final TableMasterClient mClient
public AbstractTableCommand(AlluxioConfiguration conf, TableMasterClient client)
AbstractTableCommand
.conf
- the alluxio configurationclient
- the client interface which can be used to make RPCs against the table masterpublic abstract String getCommandName()
Command
getCommandName
in interface Command
public abstract void validateArgs(org.apache.commons.cli.CommandLine cl) throws InvalidArgumentException
Command
validateArgs
in interface Command
cl
- the parsed command line for the argumentsInvalidArgumentException
- when arguments are not validpublic abstract int run(org.apache.commons.cli.CommandLine cl) throws AlluxioException, IOException
Command
run
in interface Command
cl
- the parsed command line for the argumentsAlluxioException
IOException
Copyright © 2023. All Rights Reserved.