org.apache.hadoop.hbase.util
Class ServerCommandLine
java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.hadoop.hbase.util.ServerCommandLine
- All Implemented Interfaces:
- org.apache.hadoop.conf.Configurable, org.apache.hadoop.util.Tool
- Direct Known Subclasses:
- HMasterCommandLine, HRegionServerCommandLine
public abstract class ServerCommandLine
- extends org.apache.hadoop.conf.Configured
- implements org.apache.hadoop.util.Tool
Base class for command lines that start up various HBase daemons.
Method Summary |
void |
doMain(String[] args)
Parse and run the given command line. |
protected abstract String |
getUsage()
Implementing subclasses should return a usage string to print out. |
static void |
logJVMInfo()
Log information about the currently running JVM. |
protected void |
usage(String message)
Print usage information for this command line. |
Methods inherited from class org.apache.hadoop.conf.Configured |
getConf, setConf |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.hadoop.util.Tool |
run |
Methods inherited from interface org.apache.hadoop.conf.Configurable |
getConf, setConf |
ServerCommandLine
public ServerCommandLine()
getUsage
protected abstract String getUsage()
- Implementing subclasses should return a usage string to print out.
usage
protected void usage(String message)
- Print usage information for this command line.
- Parameters:
message
- if not null, print this message before the usage info.
logJVMInfo
public static void logJVMInfo()
- Log information about the currently running JVM.
doMain
public void doMain(String[] args)
throws Exception
- Parse and run the given command line. This may exit the JVM if
a nonzero exit code is returned from
run()
.
- Throws:
Exception
Copyright © 2011 The Apache Software Foundation. All Rights Reserved.