Thread.State, Thread.UncaughtExceptionHandlerMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| 构造器和说明 |
|---|
TServerThread(org.apache.thrift.TProcessor processor,
ServerNode serverNode,
int maxWorkerThreads,
int minWorkerThreads,
RpcMonitor monitor) |
TServerThread(org.apache.thrift.server.TServer tServer) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
isStarted()
TServer是否启动
|
void |
run() |
void |
stopServer()
停止服务
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldpublic TServerThread(org.apache.thrift.TProcessor processor,
ServerNode serverNode,
int maxWorkerThreads,
int minWorkerThreads,
RpcMonitor monitor)
throws RpcException
processor - TProcessorserverNode - ServerNodemaxWorkerThreads - 最大工作线程数minWorkerThreads - 最小工作线程数monitor - RpcMonitorRpcExceptionpublic TServerThread(org.apache.thrift.server.TServer tServer)
tServer - TServerCopyright © 2015 Baifendian Corporation. All rights reserved.