public class DetachDatabaseCommand extends AbstractTableCommand
AttachDatabaseCommand
will need to be called again.mClient, mConf
Constructor and Description |
---|
DetachDatabaseCommand(AlluxioConfiguration conf,
TableMasterClient client)
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, getOptions, getSubCommands, hasSubCommand, parseAndValidateArgs
public DetachDatabaseCommand(AlluxioConfiguration conf, TableMasterClient client)
DetachDatabaseCommand
.conf
- alluxio configurationclient
- the table master clientpublic 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.