public class NonblockingThriftServerImpl extends AbstractThriftServerImpl
server
构造器和说明 |
---|
NonblockingThriftServerImpl(String serverName,
int serverPort,
ThriftServerConfiguration configuration,
org.apache.thrift.TProcessor processor) |
限定符和类型 | 方法和说明 |
---|---|
org.apache.thrift.transport.TServerTransport |
getTransport()
获取一个服务传输类型
如果使用非Socket传输类型,需要重写此方法.
|
protected void |
initServer(org.apache.thrift.transport.TServerTransport serverTransport)
初始化Thrift服务
|
getServerConfiguration, isServing, run, start, stop
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
afterStart, afterStop, beforeStart, beforeStop, getProcessor, shutdownExecutor
getServerName, getServerPort
public NonblockingThriftServerImpl(String serverName, int serverPort, ThriftServerConfiguration configuration, org.apache.thrift.TProcessor processor)
public org.apache.thrift.transport.TServerTransport getTransport() throws org.apache.thrift.transport.TTransportException
AbstractThriftServerImpl
如果使用非Socket传输类型,需要重写此方法.
getTransport
在接口中 ThriftServer
getTransport
在类中 AbstractThriftServerImpl
org.apache.thrift.transport.TTransportException
- TransportExceptionsprotected void initServer(org.apache.thrift.transport.TServerTransport serverTransport)
initServer
在类中 AbstractThriftServerImpl
serverTransport
- 服务传输类型Copyright © 2016–2019. All rights reserved.