Package org.apache.hadoop.hbase.util
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
Modifier and TypeFieldDescription(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
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected int
doWork()
protected void
processOldArgs
(List<String> args) 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
-
Field Details
-
requiredValue
-
optionalValue
-
booleanValue
boolean booleanValue
-
-
Constructor Details
-
TestTool
private TestTool()
-
-
Method Details
-
addOptions
- Specified by:
addOptions
in classorg.apache.hadoop.hbase.util.AbstractHBaseTool
-
processOptions
- Specified by:
processOptions
in classorg.apache.hadoop.hbase.util.AbstractHBaseTool
-
processOldArgs
- Overrides:
processOldArgs
in classorg.apache.hadoop.hbase.util.AbstractHBaseTool
-
doWork
- Specified by:
doWork
in classorg.apache.hadoop.hbase.util.AbstractHBaseTool
- Throws:
Exception
-