public class SyncDatabaseCommand extends AbstractTableCommand
mClient, mConf
DEFAULT_ACTIVE_JOBS, mActiveJobs, mSubmittedJobAttempts
mFileSystem, mFsContext
Constructor and Description |
---|
SyncDatabaseCommand(AlluxioConfiguration conf,
TableMasterClient client,
FileSystemContext fsContext)
Creates a new instance of
SyncDatabaseCommand . |
Modifier and Type | Method and Description |
---|---|
String |
getCommandName()
Gets the command name as input from the shell.
|
String |
getDescription() |
String |
getUsage() |
int |
run(org.apache.commons.cli.CommandLine cli)
Runs the command.
|
void |
validateArgs(org.apache.commons.cli.CommandLine cli)
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, getOptions, getSubCommands, hasSubCommand, parseAndValidateArgs
public SyncDatabaseCommand(AlluxioConfiguration conf, TableMasterClient client, FileSystemContext fsContext)
SyncDatabaseCommand
.conf
- alluxio configurationclient
- the table master clientfsContext
- the filesystem of Alluxiopublic void validateArgs(org.apache.commons.cli.CommandLine cli) throws InvalidArgumentException
Command
validateArgs
in interface Command
validateArgs
in class AbstractTableCommand
cli
- the parsed command line for the argumentsInvalidArgumentException
- when arguments are not validpublic String getCommandName()
Command
getCommandName
in interface Command
getCommandName
in class AbstractTableCommand
public String getUsage()
public String getDescription()
public int run(org.apache.commons.cli.CommandLine cli) throws AlluxioStatusException
Command
run
in interface Command
run
in class AbstractTableCommand
cli
- the parsed command line for the argumentsAlluxioStatusException
Copyright © 2023. All Rights Reserved.