public abstract class AbstractTableCommand extends AbstractDistributedJobCommand
TableShell
.Modifier and Type | Field and Description |
---|---|
protected TableMasterClient |
mClient |
protected AlluxioConfiguration |
mConf |
DEFAULT_ACTIVE_JOBS, mActiveJobs, mSubmittedJobAttempts
mFileSystem, mFsContext
Constructor and Description |
---|
AbstractTableCommand(AlluxioConfiguration conf,
TableMasterClient client,
FileSystemContext fsContext)
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.
|
drain, getCompletedCount, getFailedCount, waitJob
processHeader, runPlainPath, runWildCardCmd
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, FileSystemContext fsContext)
AbstractTableCommand
.conf
- the alluxio configurationclient
- the client interface which can be used to make RPCs against the table masterfsContext
- the filesystem of Alluxiopublic abstract String getCommandName()
Command
public abstract void validateArgs(org.apache.commons.cli.CommandLine cl) throws InvalidArgumentException
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
cl
- the parsed command line for the argumentsAlluxioException
IOException
Copyright © 2023. All Rights Reserved.