public class CustomTHsHaServer
extends org.apache.thrift.server.TNonblockingServer
Modifier and Type | Class and Description |
---|---|
static class |
CustomTHsHaServer.Factory |
protected class |
CustomTHsHaServer.Invocation
Save the remote socket as a thead local for future use of client state.
|
protected class |
CustomTHsHaServer.SelectorThread
IO Threads will perform expensive IO operations...
|
org.apache.thrift.server.TNonblockingServer.AbstractNonblockingServerArgs<T extends org.apache.thrift.server.TNonblockingServer.AbstractNonblockingServerArgs<T>>, org.apache.thrift.server.TNonblockingServer.Args, org.apache.thrift.server.TNonblockingServer.FrameBuffer, org.apache.thrift.server.TNonblockingServer.SelectThread
Constructor and Description |
---|
CustomTHsHaServer(org.apache.thrift.server.TNonblockingServer.Args args,
java.util.concurrent.ExecutorService invoker,
int threadCount)
All the arguments to Non Blocking Server will apply here.
|
Modifier and Type | Method and Description |
---|---|
protected void |
joinSelector()
Block until the selector exits.
|
protected boolean |
requestInvoke(org.apache.thrift.server.TNonblockingServer.FrameBuffer frameBuffer,
CustomTHsHaServer.SelectorThread thread) |
protected void |
requestSelectInterestChange(org.apache.thrift.server.TNonblockingServer.FrameBuffer fb)
A FrameBuffer wants to change its selection preferences, but might not be
in the select thread.
|
void |
serve()
Begin accepting connections and processing invocations.
|
protected boolean |
startThreads() |
void |
stop()
Stop serving and shut everything down.
|
public CustomTHsHaServer(org.apache.thrift.server.TNonblockingServer.Args args, java.util.concurrent.ExecutorService invoker, int threadCount)
public void serve()
org.apache.thrift.server.TNonblockingServer
serve
in class org.apache.thrift.server.TNonblockingServer
protected boolean startThreads()
protected void joinSelector()
org.apache.thrift.server.TNonblockingServer
joinSelector
in class org.apache.thrift.server.TNonblockingServer
public void stop()
stop
in class org.apache.thrift.server.TNonblockingServer
protected boolean requestInvoke(org.apache.thrift.server.TNonblockingServer.FrameBuffer frameBuffer, CustomTHsHaServer.SelectorThread thread)
protected void requestSelectInterestChange(org.apache.thrift.server.TNonblockingServer.FrameBuffer fb)
org.apache.thrift.server.TNonblockingServer
requestSelectInterestChange
in class org.apache.thrift.server.TNonblockingServer
Copyright © 2014 The Apache Software Foundation