Class AttachDatabaseCommand

  • All Implemented Interfaces:
    alluxio.cli.Command, java.io.Closeable, java.lang.AutoCloseable

    public class AttachDatabaseCommand
    extends AbstractTableCommand
    A command which can be used to attach a UDB to the Alluxio master's table service.
    • Constructor Summary

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getCommandName()  
      java.lang.String getDescription()  
      org.apache.commons.cli.Options getOptions()  
      java.lang.String getUsage()  
      int run​(org.apache.commons.cli.CommandLine cl)  
      void validateArgs​(org.apache.commons.cli.CommandLine cl)  
      • 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, getSubCommands, hasSubCommand, parseAndValidateArgs
    • Constructor Detail

      • AttachDatabaseCommand

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

      • getOptions

        public org.apache.commons.cli.Options getOptions()
      • validateArgs

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

        public int run​(org.apache.commons.cli.CommandLine cl)
                throws alluxio.exception.status.AlluxioStatusException
        Specified by:
        run in interface alluxio.cli.Command
        Specified by:
        run in class AbstractTableCommand
        Throws:
        alluxio.exception.status.AlluxioStatusException
      • getCommandName

        public java.lang.String getCommandName()
        Specified by:
        getCommandName in interface alluxio.cli.Command
        Specified by:
        getCommandName in class AbstractTableCommand
      • getDescription

        public java.lang.String getDescription()
      • getUsage

        public java.lang.String getUsage()