Class AbstractHBaseToolTest.TestTool

java.lang.Object
org.apache.hadoop.hbase.util.AbstractHBaseTool
org.apache.hadoop.hbase.util.AbstractHBaseToolTest.TestTool
All Implemented Interfaces:
org.apache.hadoop.conf.Configurable, org.apache.hadoop.util.Tool
Enclosing class:
AbstractHBaseToolTest

private static class AbstractHBaseToolTest.TestTool extends org.apache.hadoop.hbase.util.AbstractHBaseTool
Simple tool to test options parsing. 3 options: required, optional, and boolean 2 deprecated options to test backward compatibility: -opt (old version of --optional) and -bool (old version of --boolean).
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.apache.hadoop.hbase.util.AbstractHBaseTool

    org.apache.hadoop.hbase.util.AbstractHBaseTool.OptionsOrderComparator
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) boolean
     
    (package private) String
     
    (package private) String
     

    Fields inherited from class org.apache.hadoop.hbase.util.AbstractHBaseTool

    cmdLineArgs, conf, EXIT_FAILURE, EXIT_SUCCESS, LONG_HELP_OPTION, options, SHORT_HELP_OPTION
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    protected int
     
    protected void
     
    protected void
    processOptions(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmd)
     

    Methods inherited from class org.apache.hadoop.hbase.util.AbstractHBaseTool

    addOption, addOptNoArg, addOptNoArg, addOptWithArg, addOptWithArg, addRequiredOption, addRequiredOptWithArg, addRequiredOptWithArg, doStaticMain, getConf, getOptionAsDouble, getOptionAsInt, getOptionAsInt, getOptionAsLong, getOptionAsLong, newParser, parseArgs, parseInt, parseLong, printUsage, printUsage, run, setConf

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • addOptions

      protected void addOptions()
      Specified by:
      addOptions in class org.apache.hadoop.hbase.util.AbstractHBaseTool
    • processOptions

      protected void processOptions(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmd)
      Specified by:
      processOptions in class org.apache.hadoop.hbase.util.AbstractHBaseTool
    • processOldArgs

      protected void processOldArgs(List<String> args)
      Overrides:
      processOldArgs in class org.apache.hadoop.hbase.util.AbstractHBaseTool
    • doWork

      protected int doWork() throws Exception
      Specified by:
      doWork in class org.apache.hadoop.hbase.util.AbstractHBaseTool
      Throws:
      Exception