Package org.apache.thrift.server
Class TSaslNonblockingServer
- java.lang.Object
-
- org.apache.thrift.server.TServer
-
- org.apache.thrift.server.TSaslNonblockingServer
-
public class TSaslNonblockingServer extends TServer
TServer with sasl support, using asynchronous execution and nonblocking io.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TSaslNonblockingServer.Args
-
Nested classes/interfaces inherited from class org.apache.thrift.server.TServer
TServer.AbstractServerArgs<T extends TServer.AbstractServerArgs<T>>
-
-
Field Summary
-
Fields inherited from class org.apache.thrift.server.TServer
eventHandler_, inputProtocolFactory_, inputTransportFactory_, outputProtocolFactory_, outputTransportFactory_, processorFactory_, serverTransport_, stopped_
-
-
Constructor Summary
Constructors Constructor Description TSaslNonblockingServer(TSaslNonblockingServer.Args args)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
serve()
The run method fires up the server and gets things going.void
shutdown()
Gracefully shut down the server and block until all threads are stopped.void
stop()
Trigger a graceful shutdown, but it does not block to wait for the shutdown to finish.-
Methods inherited from class org.apache.thrift.server.TServer
getEventHandler, getShouldStop, isServing, setServerEventHandler, setServing, setShouldStop
-
-
-
-
Constructor Detail
-
TSaslNonblockingServer
public TSaslNonblockingServer(TSaslNonblockingServer.Args args) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
serve
public void serve()
Description copied from class:TServer
The run method fires up the server and gets things going.
-
stop
public void stop()
Trigger a graceful shutdown, but it does not block to wait for the shutdown to finish.
-
shutdown
public void shutdown() throws java.lang.InterruptedException
Gracefully shut down the server and block until all threads are stopped.- Throws:
java.lang.InterruptedException
- if is interrupted while waiting for shutdown.
-
-