public class Netty3HttpServerTransport extends AbstractLifecycleComponent implements HttpServerTransport
| Modifier and Type | Class and Description |
|---|---|
protected static class |
Netty3HttpServerTransport.HttpChannelPipelineFactory |
HttpServerTransport.DispatcherlifecycledeprecationLogger, logger, settingsHTTP_SERVER_BOSS_THREAD_NAME_PREFIX, HTTP_SERVER_WORKER_THREAD_NAME_PREFIX| Constructor and Description |
|---|
Netty3HttpServerTransport(Settings settings,
NetworkService networkService,
BigArrays bigArrays,
ThreadPool threadPool,
NamedXContentRegistry xContentRegistry,
HttpServerTransport.Dispatcher dispatcher) |
| Modifier and Type | Method and Description |
|---|---|
BoundTransportAddress |
boundAddress() |
org.jboss.netty.channel.ChannelPipelineFactory |
configureServerChannelPipelineFactory() |
protected java.lang.String |
deprecationMessage() |
protected void |
dispatchRequest(RestRequest request,
RestChannel channel) |
protected void |
doClose() |
protected void |
doStart() |
protected void |
doStop() |
protected void |
exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ExceptionEvent e) |
Netty3CorsConfig |
getCorsConfig() |
HttpInfo |
info() |
Settings |
settings() |
HttpStats |
stats() |
addLifecycleListener, close, lifecycleState, removeLifecycleListener, start, stoplogDeprecatedSetting, logRemovedSetting, nodeNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddLifecycleListener, lifecycleState, removeLifecycleListener, start, stopclosepublic static Setting<ByteSizeValue> SETTING_HTTP_NETTY_MAX_CUMULATION_BUFFER_CAPACITY
public static Setting<java.lang.Integer> SETTING_HTTP_NETTY_MAX_COMPOSITE_BUFFER_COMPONENTS
public static final Setting<java.lang.Integer> SETTING_HTTP_WORKER_COUNT
public static final Setting<java.lang.Boolean> SETTING_HTTP_TCP_NO_DELAY
public static final Setting<java.lang.Boolean> SETTING_HTTP_TCP_KEEP_ALIVE
public static final Setting<java.lang.Boolean> SETTING_HTTP_TCP_BLOCKING_SERVER
public static final Setting<java.lang.Boolean> SETTING_HTTP_TCP_REUSE_ADDRESS
public static final Setting<ByteSizeValue> SETTING_HTTP_TCP_SEND_BUFFER_SIZE
public static final Setting<ByteSizeValue> SETTING_HTTP_TCP_RECEIVE_BUFFER_SIZE
public static final Setting<ByteSizeValue> SETTING_HTTP_NETTY_RECEIVE_PREDICTOR_SIZE
public static final Setting<ByteSizeValue> SETTING_HTTP_NETTY_RECEIVE_PREDICTOR_MIN
public static final Setting<ByteSizeValue> SETTING_HTTP_NETTY_RECEIVE_PREDICTOR_MAX
protected final NetworkService networkService
protected final BigArrays bigArrays
protected final ByteSizeValue maxContentLength
protected final ByteSizeValue maxInitialLineLength
protected final ByteSizeValue maxHeaderSize
protected final ByteSizeValue maxChunkSize
protected final int workerCount
protected final boolean blockingServer
protected final boolean pipelining
protected final int pipeliningMaxEvents
protected final boolean compression
protected final int compressionLevel
protected final boolean resetCookies
protected final PortsRange port
protected final java.lang.String[] bindHosts
protected final java.lang.String[] publishHosts
protected final boolean detailedErrorsEnabled
protected final ThreadPool threadPool
protected final NamedXContentRegistry xContentRegistry
XContentParser.namedObject(Class, String, Object).protected final boolean tcpNoDelay
protected final boolean tcpKeepAlive
protected final boolean reuseAddress
protected final ByteSizeValue tcpSendBufferSize
protected final ByteSizeValue tcpReceiveBufferSize
protected final org.jboss.netty.channel.ReceiveBufferSizePredictorFactory receiveBufferSizePredictorFactory
protected final ByteSizeValue maxCumulationBufferCapacity
protected final int maxCompositeBufferComponents
protected volatile org.jboss.netty.bootstrap.ServerBootstrap serverBootstrap
protected volatile BoundTransportAddress boundAddress
protected volatile java.util.List<org.jboss.netty.channel.Channel> serverChannels
public Netty3HttpServerTransport(Settings settings, NetworkService networkService, BigArrays bigArrays, ThreadPool threadPool, NamedXContentRegistry xContentRegistry, HttpServerTransport.Dispatcher dispatcher)
protected java.lang.String deprecationMessage()
public Settings settings()
protected void doStart()
doStart in class AbstractLifecycleComponentprotected void doStop()
doStop in class AbstractLifecycleComponentprotected void doClose()
doClose in class AbstractLifecycleComponentpublic BoundTransportAddress boundAddress()
boundAddress in interface HttpServerTransportpublic HttpInfo info()
info in interface HttpServerTransportpublic HttpStats stats()
stats in interface HttpServerTransportpublic Netty3CorsConfig getCorsConfig()
protected void dispatchRequest(RestRequest request, RestChannel channel)
protected void exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ExceptionEvent e)
throws java.lang.Exception
java.lang.Exceptionpublic org.jboss.netty.channel.ChannelPipelineFactory configureServerChannelPipelineFactory()