Class AbstractTableCommand

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected alluxio.client.table.TableMasterClient mClient  
      protected alluxio.conf.AlluxioConfiguration mConf  
    • Constructor Summary

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

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

      • mConf

        protected final alluxio.conf.AlluxioConfiguration mConf
      • mClient

        protected final alluxio.client.table.TableMasterClient mClient
    • Constructor Detail

      • AbstractTableCommand

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

      • getCommandName

        public abstract java.lang.String getCommandName()
        Specified by:
        getCommandName in interface alluxio.cli.Command
      • validateArgs

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

        public abstract int run​(org.apache.commons.cli.CommandLine cl)
                         throws alluxio.exception.AlluxioException,
                                java.io.IOException
        Specified by:
        run in interface alluxio.cli.Command
        Throws:
        alluxio.exception.AlluxioException
        java.io.IOException