|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.thrift.server.TServer
org.apache.hadoop.hbase.thrift.TBoundedThreadPoolServer
@InterfaceAudience.Private public class TBoundedThreadPoolServer
A bounded thread pool server customized for HBase.
| Nested Class Summary | |
|---|---|
static class |
TBoundedThreadPoolServer.Args
|
| Nested classes/interfaces inherited from class org.apache.thrift.server.TServer |
|---|
org.apache.thrift.server.TServer.AbstractServerArgs<T extends org.apache.thrift.server.TServer.AbstractServerArgs<T>> |
| Field Summary | |
|---|---|
static int |
DEFAULT_MAX_QUEUED_REQUESTS
|
static int |
DEFAULT_MAX_WORKER_THREADS
|
static int |
DEFAULT_MIN_WORKER_THREADS
This default core pool size should be enough for many test scenarios. |
static String |
MAX_QUEUED_REQUESTS_CONF_KEY
The maximum number of pending connections waiting in the queue. |
static String |
MAX_WORKER_THREADS_CONF_KEY
The maximum size of the thread pool. |
static String |
MIN_WORKER_THREADS_CONF_KEY
The "core size" of the thread pool. |
static String |
THREAD_KEEP_ALIVE_TIME_SEC_CONF_KEY
Default amount of time in seconds to keep a thread alive. |
static int |
TIME_TO_WAIT_AFTER_SHUTDOWN_MS
Time to wait after interrupting all worker threads. |
| Fields inherited from class org.apache.thrift.server.TServer |
|---|
eventHandler_, inputProtocolFactory_, inputTransportFactory_, outputProtocolFactory_, outputTransportFactory_, processorFactory_, serverTransport_ |
| Constructor Summary | |
|---|---|
TBoundedThreadPoolServer(TBoundedThreadPoolServer.Args options,
ThriftMetrics metrics)
|
|
| Method Summary | |
|---|---|
void |
serve()
|
void |
stop()
|
| Methods inherited from class org.apache.thrift.server.TServer |
|---|
getEventHandler, isServing, setServerEventHandler, setServing |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String MIN_WORKER_THREADS_CONF_KEY
public static final int DEFAULT_MIN_WORKER_THREADS
public static final String MAX_WORKER_THREADS_CONF_KEY
public static final int DEFAULT_MAX_WORKER_THREADS
public static final String MAX_QUEUED_REQUESTS_CONF_KEY
public static final int DEFAULT_MAX_QUEUED_REQUESTS
public static final String THREAD_KEEP_ALIVE_TIME_SEC_CONF_KEY
public static final int TIME_TO_WAIT_AFTER_SHUTDOWN_MS
| Constructor Detail |
|---|
public TBoundedThreadPoolServer(TBoundedThreadPoolServer.Args options,
ThriftMetrics metrics)
| Method Detail |
|---|
public void serve()
serve in class org.apache.thrift.server.TServerpublic void stop()
stop in class org.apache.thrift.server.TServer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||