org.apache.accumulo.server.util
public class TServerUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TServerUtils.ClientInfoProcessorFactory |
static class |
TServerUtils.ServerAddress |
static class |
TServerUtils.TimedProcessor |
| Modifier and Type | Field and Description |
|---|---|
static ThreadLocal<String> |
clientAddress |
| Constructor and Description |
|---|
TServerUtils() |
| Modifier and Type | Method and Description |
|---|---|
static TServerUtils.ServerAddress |
createNonBlockingServer(com.google.common.net.HostAndPort address,
org.apache.thrift.TProcessor processor,
String serverName,
String threadName,
int numThreads,
long timeBetweenThreadChecks,
long maxMessageSize) |
static TServerUtils.ServerAddress |
createSslThreadPoolServer(com.google.common.net.HostAndPort address,
org.apache.thrift.TProcessor processor,
long socketTimeout,
SslConnectionParams sslParams) |
static TServerUtils.ServerAddress |
createThreadPoolServer(com.google.common.net.HostAndPort address,
org.apache.thrift.TProcessor processor,
String serverName,
String threadName,
int numThreads) |
static org.apache.thrift.server.TServer |
createThreadPoolServer(org.apache.thrift.transport.TServerTransport transport,
org.apache.thrift.TProcessor processor) |
static TServerUtils.ServerAddress |
startServer(AccumuloConfiguration conf,
String address,
Property portHintProperty,
org.apache.thrift.TProcessor processor,
String serverName,
String threadName,
Property portSearchProperty,
Property minThreadProperty,
Property timeBetweenThreadChecksProperty,
Property maxMessageSizeProperty)
Start a server, at the given port, or higher, if that port is not available.
|
static TServerUtils.ServerAddress |
startTServer(com.google.common.net.HostAndPort address,
org.apache.thrift.TProcessor processor,
String serverName,
String threadName,
int numThreads,
long timeBetweenThreadChecks,
long maxMessageSize,
SslConnectionParams sslParams,
long sslSocketTimeout) |
static TServerUtils.ServerAddress |
startTServer(com.google.common.net.HostAndPort address,
TServerUtils.TimedProcessor processor,
String serverName,
String threadName,
int numThreads,
long timeBetweenThreadChecks,
long maxMessageSize,
SslConnectionParams sslParams,
long sslSocketTimeout) |
static void |
stopTServer(org.apache.thrift.server.TServer s) |
public static final ThreadLocal<String> clientAddress
public static TServerUtils.ServerAddress startServer(AccumuloConfiguration conf, String address, Property portHintProperty, org.apache.thrift.TProcessor processor, String serverName, String threadName, Property portSearchProperty, Property minThreadProperty, Property timeBetweenThreadChecksProperty, Property maxMessageSizeProperty) throws UnknownHostException
portHintProperty - the port to attempt to open, can be zero, meaning "any available port"processor - the service to be startedserverName - the name of the class that is providing the servicethreadName - name this service's thread for better debuggingUnknownHostException - when we don't know our own addresspublic static TServerUtils.ServerAddress createNonBlockingServer(com.google.common.net.HostAndPort address, org.apache.thrift.TProcessor processor, String serverName, String threadName, int numThreads, long timeBetweenThreadChecks, long maxMessageSize) throws org.apache.thrift.transport.TTransportException
org.apache.thrift.transport.TTransportExceptionpublic static TServerUtils.ServerAddress createThreadPoolServer(com.google.common.net.HostAndPort address, org.apache.thrift.TProcessor processor, String serverName, String threadName, int numThreads) throws org.apache.thrift.transport.TTransportException
org.apache.thrift.transport.TTransportExceptionpublic static org.apache.thrift.server.TServer createThreadPoolServer(org.apache.thrift.transport.TServerTransport transport,
org.apache.thrift.TProcessor processor)
public static TServerUtils.ServerAddress createSslThreadPoolServer(com.google.common.net.HostAndPort address, org.apache.thrift.TProcessor processor, long socketTimeout, SslConnectionParams sslParams) throws org.apache.thrift.transport.TTransportException
org.apache.thrift.transport.TTransportExceptionpublic static TServerUtils.ServerAddress startTServer(com.google.common.net.HostAndPort address, org.apache.thrift.TProcessor processor, String serverName, String threadName, int numThreads, long timeBetweenThreadChecks, long maxMessageSize, SslConnectionParams sslParams, long sslSocketTimeout) throws org.apache.thrift.transport.TTransportException
org.apache.thrift.transport.TTransportExceptionpublic static TServerUtils.ServerAddress startTServer(com.google.common.net.HostAndPort address, TServerUtils.TimedProcessor processor, String serverName, String threadName, int numThreads, long timeBetweenThreadChecks, long maxMessageSize, SslConnectionParams sslParams, long sslSocketTimeout) throws org.apache.thrift.transport.TTransportException
org.apache.thrift.transport.TTransportExceptionpublic static void stopTServer(org.apache.thrift.server.TServer s)
Copyright © 2011–2016 The Apache Software Foundation. All rights reserved.