Package alluxio.cli.table.command
Class DetachDatabaseCommand
- java.lang.Object
-
- alluxio.cli.table.command.AbstractTableCommand
-
- alluxio.cli.table.command.DetachDatabaseCommand
-
- All Implemented Interfaces:
alluxio.cli.Command,java.io.Closeable,java.lang.AutoCloseable
public class DetachDatabaseCommand extends AbstractTableCommand
This command removes a database from the table master. After calling this, the database and all table metadata is removed. To regain access to this table, the correspondingAttachDatabaseCommandwill need to be called again.
-
-
Field Summary
-
Fields inherited from class alluxio.cli.table.command.AbstractTableCommand
mClient, mConf
-
-
Constructor Summary
Constructors Constructor Description DetachDatabaseCommand(alluxio.conf.AlluxioConfiguration conf, alluxio.client.table.TableMasterClient client)Creates a new instance ofDetachDatabaseCommand.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetCommandName()java.lang.StringgetDescription()java.lang.StringgetUsage()intrun(org.apache.commons.cli.CommandLine cli)voidvalidateArgs(org.apache.commons.cli.CommandLine cli)
-
-
-
Constructor Detail
-
DetachDatabaseCommand
public DetachDatabaseCommand(alluxio.conf.AlluxioConfiguration conf, alluxio.client.table.TableMasterClient client)Creates a new instance ofDetachDatabaseCommand.- Parameters:
conf- alluxio configurationclient- the table master client
-
-
Method Detail
-
validateArgs
public void validateArgs(org.apache.commons.cli.CommandLine cli) throws alluxio.exception.status.InvalidArgumentException- Specified by:
validateArgsin interfacealluxio.cli.Command- Specified by:
validateArgsin classAbstractTableCommand- Throws:
alluxio.exception.status.InvalidArgumentException
-
getCommandName
public java.lang.String getCommandName()
- Specified by:
getCommandNamein interfacealluxio.cli.Command- Specified by:
getCommandNamein classAbstractTableCommand
-
getUsage
public java.lang.String getUsage()
-
getDescription
public java.lang.String getDescription()
-
run
public int run(org.apache.commons.cli.CommandLine cli) throws alluxio.exception.status.AlluxioStatusException- Specified by:
runin interfacealluxio.cli.Command- Specified by:
runin classAbstractTableCommand- Throws:
alluxio.exception.status.AlluxioStatusException
-
-