@InterfaceAudience.Private public class ThriftServerRunner extends Object implements Runnable
Modifier and Type | Class and Description |
---|---|
static class |
ThriftServerRunner.HBaseHandler
The HBaseHandler is a glue object that connects Thrift RPC calls to the
HBase client API primarily defined in the Admin and Table objects.
|
(package private) static class |
ThriftServerRunner.ImplType
An enum of server implementation selections
|
protected static class |
ThriftServerRunner.ResultScannerWrapper |
Modifier and Type | Field and Description |
---|---|
(package private) static String |
BACKLOG_CONF_KEY |
(package private) static String |
BIND_CONF_KEY |
(package private) static String |
COALESCE_INC_KEY |
(package private) static String |
COMPACT_CONF_KEY |
private org.apache.hadoop.conf.Configuration |
conf |
private static String |
DEFAULT_BIND_ADDR |
static int |
DEFAULT_LISTEN_PORT |
private boolean |
doAsEnabled |
(package private) static String |
FRAMED_CONF_KEY |
private org.apache.hadoop.hbase.thrift.generated.Hbase.Iface |
handler |
private ThriftServerRunner.HBaseHandler |
hbaseHandler |
private String |
host |
static int |
HREGION_VERSION |
(package private) static String |
HTTP_MAX_THREADS |
(package private) static String |
HTTP_MIN_THREADS |
(package private) org.mortbay.jetty.Server |
httpServer |
private int |
listenPort |
private static org.apache.commons.logging.Log |
LOG |
(package private) static String |
MAX_FRAME_SIZE_CONF_KEY |
private ThriftMetrics |
metrics |
(package private) static String |
PORT_CONF_KEY |
private SaslUtil.QualityOfProtection |
qop |
private org.apache.hadoop.security.UserGroupInformation |
realUser |
private boolean |
securityEnabled |
(package private) static String |
SERVER_TYPE_CONF_KEY |
(package private) static String |
THRIFT_QOP_KEY
Thrift quality of protection configuration key.
|
static int |
THRIFT_SERVER_SOCKET_READ_TIMEOUT_DEFAULT |
static String |
THRIFT_SERVER_SOCKET_READ_TIMEOUT_KEY
Amount of time in milliseconds before a server thread will timeout
waiting for client to send data on a connected socket.
|
(package private) static String |
THRIFT_SSL_ENABLED |
(package private) static String |
THRIFT_SSL_KEYSTORE_KEYPASSWORD |
(package private) static String |
THRIFT_SSL_KEYSTORE_PASSWORD |
(package private) static String |
THRIFT_SSL_KEYSTORE_STORE |
(package private) static String |
THRIFT_SUPPORT_PROXYUSER |
(package private) org.apache.thrift.server.TServer |
tserver |
(package private) static String |
USE_HTTP_CONF_KEY |
Constructor and Description |
---|
ThriftServerRunner(org.apache.hadoop.conf.Configuration conf) |
Modifier and Type | Method and Description |
---|---|
private static void |
addAttributes(OperationWithAttributes op,
Map<ByteBuffer,ByteBuffer> attributes)
Adds all the attributes into the Operation object
|
private void |
checkHttpSecurity(SaslUtil.QualityOfProtection qop,
org.apache.hadoop.conf.Configuration conf) |
(package private) ExecutorService |
createExecutor(BlockingQueue<Runnable> callQueue,
int minWorkers,
int maxWorkers) |
private InetAddress |
getBindAddress(org.apache.hadoop.conf.Configuration conf) |
static void |
registerFilters(org.apache.hadoop.conf.Configuration conf) |
void |
run() |
private void |
setupHTTPServer() |
private void |
setupServer()
Setting up the thrift TServer
|
void |
shutdown() |
private static final org.apache.commons.logging.Log LOG
static final String SERVER_TYPE_CONF_KEY
static final String BIND_CONF_KEY
static final String COMPACT_CONF_KEY
static final String FRAMED_CONF_KEY
static final String MAX_FRAME_SIZE_CONF_KEY
static final String PORT_CONF_KEY
static final String COALESCE_INC_KEY
static final String USE_HTTP_CONF_KEY
static final String HTTP_MIN_THREADS
static final String HTTP_MAX_THREADS
static final String THRIFT_SSL_ENABLED
static final String THRIFT_SSL_KEYSTORE_STORE
static final String THRIFT_SSL_KEYSTORE_PASSWORD
static final String THRIFT_SSL_KEYSTORE_KEYPASSWORD
public static final String THRIFT_SERVER_SOCKET_READ_TIMEOUT_KEY
public static final int THRIFT_SERVER_SOCKET_READ_TIMEOUT_DEFAULT
static final String THRIFT_QOP_KEY
static final String BACKLOG_CONF_KEY
private static final String DEFAULT_BIND_ADDR
public static final int DEFAULT_LISTEN_PORT
public static final int HREGION_VERSION
static final String THRIFT_SUPPORT_PROXYUSER
private final int listenPort
private org.apache.hadoop.conf.Configuration conf
volatile org.apache.thrift.server.TServer tserver
volatile org.mortbay.jetty.Server httpServer
private final org.apache.hadoop.hbase.thrift.generated.Hbase.Iface handler
private final ThriftMetrics metrics
private final ThriftServerRunner.HBaseHandler hbaseHandler
private final org.apache.hadoop.security.UserGroupInformation realUser
private SaslUtil.QualityOfProtection qop
private String host
private final boolean securityEnabled
private final boolean doAsEnabled
public ThriftServerRunner(org.apache.hadoop.conf.Configuration conf) throws IOException
IOException
private void checkHttpSecurity(SaslUtil.QualityOfProtection qop, org.apache.hadoop.conf.Configuration conf)
public void shutdown()
private void setupHTTPServer() throws IOException
IOException
private void setupServer() throws Exception
Exception
ExecutorService createExecutor(BlockingQueue<Runnable> callQueue, int minWorkers, int maxWorkers)
private InetAddress getBindAddress(org.apache.hadoop.conf.Configuration conf) throws UnknownHostException
UnknownHostException
private static void addAttributes(OperationWithAttributes op, Map<ByteBuffer,ByteBuffer> attributes)
public static void registerFilters(org.apache.hadoop.conf.Configuration conf)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.