@InterfaceAudience.Private public class RestoreDriver extends AbstractHBaseTool
AbstractHBaseTool.OptionsOrderComparator
Modifier and Type | Field and Description |
---|---|
private org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine |
cmd |
private static org.slf4j.Logger |
LOG |
private static String |
USAGE_FOOTER |
private static String |
USAGE_STRING |
cmdLineArgs, conf, EXIT_FAILURE, EXIT_SUCCESS, LONG_HELP_OPTION, options, SHORT_HELP_OPTION
Modifier | Constructor and Description |
---|---|
protected |
RestoreDriver() |
Modifier and Type | Method and Description |
---|---|
protected void |
addOptions()
Override this to add command-line options using
AbstractHBaseTool.addOptWithArg(java.lang.String, java.lang.String) and similar methods. |
protected int |
doWork()
The "main function" of the tool
|
private String |
getTablesForSet(Connection conn,
String name) |
protected void |
init() |
static void |
main(String[] args) |
private int |
parseAndRun() |
protected void |
printToolUsage() |
protected void |
processOptions(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmd)
This method is called to process the options after they have been parsed.
|
int |
run(String[] args) |
addOption, addOptNoArg, addOptNoArg, addOptWithArg, addOptWithArg, addRequiredOption, addRequiredOptWithArg, addRequiredOptWithArg, doStaticMain, getConf, getOptionAsDouble, getOptionAsInt, getOptionAsInt, getOptionAsLong, getOptionAsLong, newParser, parseArgs, parseInt, parseLong, printUsage, printUsage, processOldArgs, setConf
private static final org.slf4j.Logger LOG
private org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmd
private static final String USAGE_STRING
private static final String USAGE_FOOTER
protected RestoreDriver() throws IOException
IOException
protected void init()
private int parseAndRun() throws IOException
IOException
private String getTablesForSet(Connection conn, String name) throws IOException
IOException
protected void addOptions()
AbstractHBaseTool
AbstractHBaseTool.addOptWithArg(java.lang.String, java.lang.String)
and similar methods.addOptions
in class AbstractHBaseTool
protected void processOptions(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmd)
AbstractHBaseTool
processOptions
in class AbstractHBaseTool
protected int doWork() throws Exception
AbstractHBaseTool
doWork
in class AbstractHBaseTool
Exception
public int run(String[] args)
run
in interface org.apache.hadoop.util.Tool
run
in class AbstractHBaseTool
protected void printToolUsage()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.