@InterfaceAudience.LimitedPrivate(value="Tools") public class ThriftServer extends Object
Modifier and Type | Field and Description |
---|---|
(package private) static String |
BIND_OPTION |
(package private) static String |
COMPACT_OPTION |
private org.apache.hadoop.conf.Configuration |
conf |
private static String |
DEFAULT_BIND_ADDR |
private static int |
DEFAULT_LISTEN_PORT |
(package private) static String |
FRAMED_OPTION |
private InfoServer |
infoServer |
private static String |
KEEP_ALIVE_SEC_OPTION |
private static org.slf4j.Logger |
LOG |
private static String |
MAX_QUEUE_SIZE_OPTION |
private static String |
MAX_WORKERS_OPTION |
private static String |
MIN_WORKERS_OPTION |
(package private) static String |
PORT_OPTION |
private static String |
READ_TIMEOUT_OPTION |
(package private) ThriftServerRunner |
serverRunner |
Constructor and Description |
---|
ThriftServer(org.apache.hadoop.conf.Configuration conf) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
doMain(String[] args)
Start up or shuts down the Thrift server, depending on the arguments.
|
static void |
main(String[] args) |
private static void |
optionToConf(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmd,
String option,
org.apache.hadoop.conf.Configuration conf,
String destConfKey) |
private static void |
printUsageAndExit(org.apache.hbase.thirdparty.org.apache.commons.cli.Options options,
int exitCode) |
private void |
processOptions(String[] args)
Parse the command line options to set parameters the conf.
|
void |
stop() |
private static final org.slf4j.Logger LOG
private static final String MIN_WORKERS_OPTION
private static final String MAX_WORKERS_OPTION
private static final String MAX_QUEUE_SIZE_OPTION
private static final String KEEP_ALIVE_SEC_OPTION
static final String BIND_OPTION
static final String COMPACT_OPTION
static final String FRAMED_OPTION
static final String PORT_OPTION
private static final String DEFAULT_BIND_ADDR
private static final int DEFAULT_LISTEN_PORT
private org.apache.hadoop.conf.Configuration conf
ThriftServerRunner serverRunner
private InfoServer infoServer
private static final String READ_TIMEOUT_OPTION
public ThriftServer(org.apache.hadoop.conf.Configuration conf)
private static void printUsageAndExit(org.apache.hbase.thirdparty.org.apache.commons.cli.Options options, int exitCode) throws org.apache.hadoop.util.Shell.ExitCodeException
org.apache.hadoop.util.Shell.ExitCodeException
void doMain(String[] args) throws Exception
args
- Exception
private void processOptions(String[] args) throws Exception
Exception
public void stop()
private static void optionToConf(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmd, String option, org.apache.hadoop.conf.Configuration conf, String destConfKey)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.