Package org.apache.thrift.server
Class TSimpleServer
java.lang.Object
org.apache.thrift.server.TServer
org.apache.thrift.server.TSimpleServer
Simple singlethreaded server for testing.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.thrift.server.TServer
TServer.AbstractServerArgs<T extends TServer.AbstractServerArgs<T>>, TServer.Args
-
Field Summary
Fields inherited from class org.apache.thrift.server.TServer
eventHandler_, inputProtocolFactory_, inputTransportFactory_, outputProtocolFactory_, outputTransportFactory_, processorFactory_, serverTransport_, stopped_
-
Constructor Summary
-
Method Summary
Methods inherited from class org.apache.thrift.server.TServer
getEventHandler, getShouldStop, isServing, setServerEventHandler, setServing, setShouldStop
-
Constructor Details
-
TSimpleServer
-
-
Method Details
-
serve
public void serve()Description copied from class:TServer
The run method fires up the server and gets things going. -
stop
public void stop()Description copied from class:TServer
Stop the server. This is optional on a per-implementation basis. Not all servers are required to be cleanly stoppable.
-