|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.thrift.server.TServer
public abstract class TServer
Generic interface for a Thrift server.
| Nested Class Summary | |
|---|---|
static class |
TServer.AbstractServerArgs<T extends TServer.AbstractServerArgs<T>>
|
static class |
TServer.Args
|
| Field Summary | |
|---|---|
protected TServerEventHandler |
eventHandler_
|
protected TProtocolFactory |
inputProtocolFactory_
Input Protocol Factory |
protected TTransportFactory |
inputTransportFactory_
Input Transport Factory |
protected TProtocolFactory |
outputProtocolFactory_
Output Protocol Factory |
protected TTransportFactory |
outputTransportFactory_
Output Transport Factory |
protected TProcessorFactory |
processorFactory_
Core processor |
protected TServerTransport |
serverTransport_
Server transport |
| Constructor Summary | |
|---|---|
protected |
TServer(TServer.AbstractServerArgs 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)
|
protected void |
setServing(boolean serving)
|
void |
stop()
Stop the server. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected TProcessorFactory processorFactory_
protected TServerTransport serverTransport_
protected TTransportFactory inputTransportFactory_
protected TTransportFactory outputTransportFactory_
protected TProtocolFactory inputProtocolFactory_
protected TProtocolFactory outputProtocolFactory_
protected TServerEventHandler eventHandler_
| Constructor Detail |
|---|
protected TServer(TServer.AbstractServerArgs args)
| Method Detail |
|---|
public abstract void serve()
public void stop()
public boolean isServing()
protected void setServing(boolean serving)
public void setServerEventHandler(TServerEventHandler eventHandler)
public TServerEventHandler getEventHandler()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||