org.apache.thrift.server
Class TServer

java.lang.Object
  extended by org.apache.thrift.server.TServer
Direct Known Subclasses:
TNonblockingServer, TSimpleServer, TThreadPoolServer

public abstract class TServer
extends java.lang.Object

Generic interface for a Thrift server.


Method Summary
abstract  void serve()
          The run method fires up the server and gets things going.
 void stop()
          Stop the server.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

serve

public abstract void serve()
The run method fires up the server and gets things going.


stop

public void stop()
Stop the server. This is optional on a per-implementation basis. Not all servers are required to be cleanly stoppable.



Copyright © 2010. All Rights Reserved.