@InterfaceAudience.LimitedPrivate(value="Tools")
public class ThriftServer
extends org.apache.hadoop.conf.Configured
implements org.apache.hadoop.util.Tool
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_LISTEN_PORT |
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.
|
Constructor and Description |
---|
ThriftServer() |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args)
Start up the Thrift2 server.
|
protected static void |
registerFilters(org.apache.hadoop.conf.Configuration conf)
Adds the option to pre-load filters at startup.
|
int |
run(String[] args) |
public static final int DEFAULT_LISTEN_PORT
public static final String THRIFT_SERVER_SOCKET_READ_TIMEOUT_KEY
public static final int THRIFT_SERVER_SOCKET_READ_TIMEOUT_DEFAULT
protected static void registerFilters(org.apache.hadoop.conf.Configuration conf)
conf
- The current configuration instance.public static void main(String[] args) throws Exception
Exception
Copyright © 2007–2019 Cloudera. All rights reserved.