org.apache.thrift.server
Class TSimpleServer

java.lang.Object
  extended by org.apache.thrift.server.TServer
      extended by org.apache.thrift.server.TSimpleServer

public class TSimpleServer
extends TServer

Simple singlethreaded server for testing.


Field Summary
 
Fields inherited from class org.apache.thrift.server.TServer
inputProtocolFactory_, inputTransportFactory_, outputProtocolFactory_, outputTransportFactory_, processorFactory_, serverTransport_
 
Constructor Summary
TSimpleServer(TProcessorFactory processorFactory, TServerTransport serverTransport)
           
TSimpleServer(TProcessorFactory processorFactory, TServerTransport serverTransport, TTransportFactory transportFactory, TProtocolFactory protocolFactory)
           
TSimpleServer(TProcessorFactory processorFactory, TServerTransport serverTransport, TTransportFactory inputTransportFactory, TTransportFactory outputTransportFactory, TProtocolFactory inputProtocolFactory, TProtocolFactory outputProtocolFactory)
           
TSimpleServer(TProcessor processor, TServerTransport serverTransport)
           
TSimpleServer(TProcessor processor, TServerTransport serverTransport, TTransportFactory transportFactory, TProtocolFactory protocolFactory)
           
TSimpleServer(TProcessor processor, TServerTransport serverTransport, TTransportFactory inputTransportFactory, TTransportFactory outputTransportFactory, TProtocolFactory inputProtocolFactory, TProtocolFactory outputProtocolFactory)
           
 
Method Summary
 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TSimpleServer

public TSimpleServer(TProcessor processor,
                     TServerTransport serverTransport)

TSimpleServer

public TSimpleServer(TProcessor processor,
                     TServerTransport serverTransport,
                     TTransportFactory transportFactory,
                     TProtocolFactory protocolFactory)

TSimpleServer

public TSimpleServer(TProcessor processor,
                     TServerTransport serverTransport,
                     TTransportFactory inputTransportFactory,
                     TTransportFactory outputTransportFactory,
                     TProtocolFactory inputProtocolFactory,
                     TProtocolFactory outputProtocolFactory)

TSimpleServer

public TSimpleServer(TProcessorFactory processorFactory,
                     TServerTransport serverTransport)

TSimpleServer

public TSimpleServer(TProcessorFactory processorFactory,
                     TServerTransport serverTransport,
                     TTransportFactory transportFactory,
                     TProtocolFactory protocolFactory)

TSimpleServer

public TSimpleServer(TProcessorFactory processorFactory,
                     TServerTransport serverTransport,
                     TTransportFactory inputTransportFactory,
                     TTransportFactory outputTransportFactory,
                     TProtocolFactory inputProtocolFactory,
                     TProtocolFactory outputProtocolFactory)
Method Detail

serve

public void serve()
Description copied from class: TServer
The run method fires up the server and gets things going.

Specified by:
serve in class TServer

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.

Overrides:
stop in class TServer