public class DetachDatabaseCommand extends AbstractTableCommand
AttachDatabaseCommand
will need to be called again.mClient, mConf
ASYNC_OPTION, DEFAULT_ACTIVE_JOBS, mActiveJobs, mSubmittedJobAttempts
mFileSystem, mFsContext
Constructor and Description |
---|
DetachDatabaseCommand(AlluxioConfiguration conf,
TableMasterClient client,
FileSystemContext fsContext)
Creates a new instance of
DetachDatabaseCommand . |
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, getCompletedCmdCount, getCompletedCount, getFailedCmdCount, getFailedCount, getFailedFiles, postProcessing, processFailures, submit, waitForCmd, waitJob
processHeader, runPlainPath, runWildCardCmd
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, getOptions, getSubCommands, hasSubCommand, parseAndValidateArgs
public DetachDatabaseCommand(AlluxioConfiguration conf, TableMasterClient client, FileSystemContext fsContext)
DetachDatabaseCommand
.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.