org.apache.blur.thirdparty.thrift_0_9_0.server
Class TServer

java.lang.Object
  extended by org.apache.blur.thirdparty.thrift_0_9_0.server.TServer
Direct Known Subclasses:
AbstractNonblockingServer, AbstractNonblockingServer, TSimpleServer, TThreadPoolServer

public abstract class TServer
extends Object

Generic interface for a Thrift server.


Nested Class Summary
static class TServer.AbstractServerArgs<T extends TServer.AbstractServerArgs<T>>
           
static class TServer.Args
           
 
Method Summary
 TServerEventHandler getEventHandler()
           
 boolean isServing()
           
abstract  void serve()
          The run method fires up the server and gets things going.
 void setServerEventHandler(TServerEventHandler eventHandler)
           
 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.


isServing

public boolean isServing()

setServerEventHandler

public void setServerEventHandler(TServerEventHandler eventHandler)

getEventHandler

public TServerEventHandler getEventHandler()


Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.