java.io.Closeable
, java.lang.AutoCloseable
, org.elasticsearch.common.component.LifecycleComponent
, org.elasticsearch.common.lease.Releasable
, org.elasticsearch.http.HttpServerTransport
public class Netty4HttpServerTransport
extends org.elasticsearch.common.component.AbstractLifecycleComponent
implements org.elasticsearch.http.HttpServerTransport
Modifier and Type | Class | Description |
---|---|---|
protected static class |
Netty4HttpServerTransport.HttpChannelHandler |
Modifier and Type | Field | Description |
---|---|---|
protected org.elasticsearch.common.util.BigArrays |
bigArrays |
|
protected java.lang.String[] |
bindHosts |
|
protected org.elasticsearch.common.transport.BoundTransportAddress |
boundAddress |
|
protected boolean |
compression |
|
protected int |
compressionLevel |
|
protected boolean |
detailedErrorsEnabled |
|
protected org.elasticsearch.common.unit.ByteSizeValue |
maxChunkSize |
|
protected int |
maxCompositeBufferComponents |
|
protected org.elasticsearch.common.unit.ByteSizeValue |
maxContentLength |
|
protected org.elasticsearch.common.unit.ByteSizeValue |
maxHeaderSize |
|
protected org.elasticsearch.common.unit.ByteSizeValue |
maxInitialLineLength |
|
protected org.elasticsearch.common.network.NetworkService |
networkService |
|
protected boolean |
pipelining |
|
protected int |
pipeliningMaxEvents |
|
protected org.elasticsearch.common.transport.PortsRange |
port |
|
protected java.lang.String[] |
publishHosts |
|
protected io.netty.channel.RecvByteBufAllocator |
recvByteBufAllocator |
|
protected boolean |
resetCookies |
|
protected boolean |
reuseAddress |
|
protected io.netty.bootstrap.ServerBootstrap |
serverBootstrap |
|
protected java.util.List<io.netty.channel.Channel> |
serverChannels |
|
static org.elasticsearch.common.settings.Setting<java.lang.Integer> |
SETTING_HTTP_NETTY_MAX_COMPOSITE_BUFFER_COMPONENTS |
|
static org.elasticsearch.common.settings.Setting<org.elasticsearch.common.unit.ByteSizeValue> |
SETTING_HTTP_NETTY_RECEIVE_PREDICTOR_MAX |
Deprecated.
This (undocumented) setting is deprecated to reduce complexity and is removed in 7.0.
|
static org.elasticsearch.common.settings.Setting<org.elasticsearch.common.unit.ByteSizeValue> |
SETTING_HTTP_NETTY_RECEIVE_PREDICTOR_MIN |
Deprecated.
This (undocumented) setting is deprecated to reduce complexity and is removed in 7.0.
|
static org.elasticsearch.common.settings.Setting<org.elasticsearch.common.unit.ByteSizeValue> |
SETTING_HTTP_NETTY_RECEIVE_PREDICTOR_SIZE |
|
static org.elasticsearch.common.settings.Setting<java.lang.Integer> |
SETTING_HTTP_WORKER_COUNT |
|
protected boolean |
tcpKeepAlive |
|
protected boolean |
tcpNoDelay |
|
protected org.elasticsearch.common.unit.ByteSizeValue |
tcpReceiveBufferSize |
|
protected org.elasticsearch.common.unit.ByteSizeValue |
tcpSendBufferSize |
|
protected org.elasticsearch.threadpool.ThreadPool |
threadPool |
|
protected int |
workerCount |
|
protected org.elasticsearch.common.xcontent.NamedXContentRegistry |
xContentRegistry |
The registry used to construct parsers so they support
XContentParser.namedObject(Class, String, Object) . |
Constructor | Description |
---|---|
Netty4HttpServerTransport(org.elasticsearch.common.settings.Settings settings,
org.elasticsearch.common.network.NetworkService networkService,
org.elasticsearch.common.util.BigArrays bigArrays,
org.elasticsearch.threadpool.ThreadPool threadPool,
org.elasticsearch.common.xcontent.NamedXContentRegistry xContentRegistry,
org.elasticsearch.http.HttpServerTransport.Dispatcher dispatcher) |
Modifier and Type | Method | Description |
---|---|---|
org.elasticsearch.common.transport.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() |
|
org.elasticsearch.http.HttpInfo |
info() |
|
org.elasticsearch.common.settings.Settings |
settings() |
|
org.elasticsearch.http.HttpStats |
stats() |
logDeprecatedSetting, logRemovedSetting, nodeName
addLifecycleListener, close, lifecycleState, removeLifecycleListener, start, stop
addLifecycleListener, lifecycleState, removeLifecycleListener, start, stop
public static org.elasticsearch.common.settings.Setting<java.lang.Integer> SETTING_HTTP_NETTY_MAX_COMPOSITE_BUFFER_COMPONENTS
public static final org.elasticsearch.common.settings.Setting<java.lang.Integer> SETTING_HTTP_WORKER_COUNT
public static final org.elasticsearch.common.settings.Setting<org.elasticsearch.common.unit.ByteSizeValue> SETTING_HTTP_NETTY_RECEIVE_PREDICTOR_SIZE
@Deprecated public static final org.elasticsearch.common.settings.Setting<org.elasticsearch.common.unit.ByteSizeValue> SETTING_HTTP_NETTY_RECEIVE_PREDICTOR_MIN
@Deprecated public static final org.elasticsearch.common.settings.Setting<org.elasticsearch.common.unit.ByteSizeValue> SETTING_HTTP_NETTY_RECEIVE_PREDICTOR_MAX
protected final org.elasticsearch.common.network.NetworkService networkService
protected final org.elasticsearch.common.util.BigArrays bigArrays
protected final org.elasticsearch.common.unit.ByteSizeValue maxContentLength
protected final org.elasticsearch.common.unit.ByteSizeValue maxInitialLineLength
protected final org.elasticsearch.common.unit.ByteSizeValue maxHeaderSize
protected final org.elasticsearch.common.unit.ByteSizeValue maxChunkSize
protected final int workerCount
protected final boolean pipelining
protected final int pipeliningMaxEvents
protected final boolean compression
protected final int compressionLevel
protected final boolean resetCookies
protected final org.elasticsearch.common.transport.PortsRange port
protected final java.lang.String[] bindHosts
protected final java.lang.String[] publishHosts
protected final boolean detailedErrorsEnabled
protected final org.elasticsearch.threadpool.ThreadPool threadPool
protected final org.elasticsearch.common.xcontent.NamedXContentRegistry xContentRegistry
XContentParser.namedObject(Class, String, Object)
.protected final boolean tcpNoDelay
protected final boolean tcpKeepAlive
protected final boolean reuseAddress
protected final org.elasticsearch.common.unit.ByteSizeValue tcpSendBufferSize
protected final org.elasticsearch.common.unit.ByteSizeValue tcpReceiveBufferSize
protected final io.netty.channel.RecvByteBufAllocator recvByteBufAllocator
protected final int maxCompositeBufferComponents
protected volatile io.netty.bootstrap.ServerBootstrap serverBootstrap
protected volatile org.elasticsearch.common.transport.BoundTransportAddress boundAddress
protected final java.util.List<io.netty.channel.Channel> serverChannels
public Netty4HttpServerTransport(org.elasticsearch.common.settings.Settings settings, org.elasticsearch.common.network.NetworkService networkService, org.elasticsearch.common.util.BigArrays bigArrays, org.elasticsearch.threadpool.ThreadPool threadPool, org.elasticsearch.common.xcontent.NamedXContentRegistry xContentRegistry, org.elasticsearch.http.HttpServerTransport.Dispatcher dispatcher)
public org.elasticsearch.common.settings.Settings settings()
protected void doStart()
doStart
in class org.elasticsearch.common.component.AbstractLifecycleComponent
protected void doStop()
doStop
in class org.elasticsearch.common.component.AbstractLifecycleComponent
protected void doClose()
doClose
in class org.elasticsearch.common.component.AbstractLifecycleComponent
public org.elasticsearch.common.transport.BoundTransportAddress boundAddress()
boundAddress
in interface org.elasticsearch.http.HttpServerTransport
public org.elasticsearch.http.HttpInfo info()
info
in interface org.elasticsearch.http.HttpServerTransport
public org.elasticsearch.http.HttpStats stats()
stats
in interface org.elasticsearch.http.HttpServerTransport
public Netty4CorsConfig getCorsConfig()
protected void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, java.lang.Throwable cause) throws java.lang.Exception
java.lang.Exception
public io.netty.channel.ChannelHandler configureServerChannelHandler()