Class 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 corresponding AttachDatabaseCommand will need to be called again.
    • Constructor Summary

      Constructors 
      Constructor Description
      DetachDatabaseCommand​(alluxio.conf.AlluxioConfiguration conf, alluxio.client.table.TableMasterClient client)
      Creates a new instance of DetachDatabaseCommand.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getCommandName()  
      java.lang.String getDescription()  
      java.lang.String getUsage()  
      int run​(org.apache.commons.cli.CommandLine cli)  
      void validateArgs​(org.apache.commons.cli.CommandLine cli)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface alluxio.cli.Command

        close, getOptions, getSubCommands, hasSubCommand, parseAndValidateArgs
    • Constructor Detail

      • DetachDatabaseCommand

        public DetachDatabaseCommand​(alluxio.conf.AlluxioConfiguration conf,
                                     alluxio.client.table.TableMasterClient client)
        Creates a new instance of DetachDatabaseCommand.
        Parameters:
        conf - alluxio configuration
        client - the table master client
    • Method Detail

      • validateArgs

        public void validateArgs​(org.apache.commons.cli.CommandLine cli)
                          throws alluxio.exception.status.InvalidArgumentException
        Specified by:
        validateArgs in interface alluxio.cli.Command
        Specified by:
        validateArgs in class AbstractTableCommand
        Throws:
        alluxio.exception.status.InvalidArgumentException
      • getCommandName

        public java.lang.String getCommandName()
        Specified by:
        getCommandName in interface alluxio.cli.Command
        Specified by:
        getCommandName in class AbstractTableCommand
      • 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:
        run in interface alluxio.cli.Command
        Specified by:
        run in class AbstractTableCommand
        Throws:
        alluxio.exception.status.AlluxioStatusException