public class Netty4HttpServerTransport extends AbstractLifecycleComponent implements HttpServerTransport
| Modifier and Type | Class and Description |
|---|---|
protected static class |
Netty4HttpServerTransport.HttpChannelHandler |
HttpServerTransport.DispatcherlifecycledeprecationLogger, logger, settingsHTTP_SERVER_BOSS_THREAD_NAME_PREFIX, HTTP_SERVER_WORKER_THREAD_NAME_PREFIX| Constructor and Description |
|---|
Netty4HttpServerTransport(Settings settings,
NetworkService networkService,
BigArrays bigArrays,
ThreadPool threadPool,
NamedXContentRegistry xContentRegistry,
HttpServerTransport.Dispatcher dispatcher) |
| Modifier and Type | Method and Description |
|---|---|
BoundTransportAddress |
boundAddress() |
io.netty.channel.ChannelHandler |
configureServerChannelHandler() |
protected void |
doClose() |
protected void |
doStart() |
protected void |
doStop() |
protected void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
java.lang.Throwable cause) |
Netty4CorsConfig |
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 io.netty.channel.RecvByteBufAllocator recvByteBufAllocator
protected final ByteSizeValue maxCumulationBufferCapacity
protected final int maxCompositeBufferComponents
protected volatile io.netty.bootstrap.ServerBootstrap serverBootstrap
protected volatile BoundTransportAddress boundAddress
protected final java.util.List<io.netty.channel.Channel> serverChannels
public Netty4HttpServerTransport(Settings settings, NetworkService networkService, BigArrays bigArrays, ThreadPool threadPool, NamedXContentRegistry xContentRegistry, HttpServerTransport.Dispatcher dispatcher)
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 Netty4CorsConfig getCorsConfig()
protected void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
java.lang.Throwable cause)
throws java.lang.Exception
java.lang.Exceptionpublic io.netty.channel.ChannelHandler configureServerChannelHandler()