public class Netty4HttpServerTransport
extends org.elasticsearch.common.component.AbstractLifecycleComponent
implements org.elasticsearch.http.HttpServerTransport
| Modifier and Type | Class and Description |
|---|---|
protected static class |
Netty4HttpServerTransport.HttpChannelHandler |
| Modifier and Type | Field and Description |
|---|---|
protected org.elasticsearch.common.util.BigArrays |
bigArrays |
protected java.lang.String[] |
bindHosts |
protected boolean |
blockingServer |
protected org.elasticsearch.common.transport.BoundTransportAddress |
boundAddress |
protected boolean |
compression |
protected int |
compressionLevel |
protected boolean |
detailedErrorsEnabled |
protected org.elasticsearch.http.HttpServerAdapter |
httpServerAdapter |
protected org.elasticsearch.common.unit.ByteSizeValue |
maxChunkSize |
protected int |
maxCompositeBufferComponents |
protected org.elasticsearch.common.unit.ByteSizeValue |
maxContentLength |
protected org.elasticsearch.common.unit.ByteSizeValue |
maxCumulationBufferCapacity |
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_MAX_CUMULATION_BUFFER_CAPACITY |
static org.elasticsearch.common.settings.Setting<org.elasticsearch.common.unit.ByteSizeValue> |
SETTING_HTTP_NETTY_RECEIVE_PREDICTOR_MAX |
static org.elasticsearch.common.settings.Setting<org.elasticsearch.common.unit.ByteSizeValue> |
SETTING_HTTP_NETTY_RECEIVE_PREDICTOR_MIN |
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.Boolean> |
SETTING_HTTP_TCP_BLOCKING_SERVER |
static org.elasticsearch.common.settings.Setting<java.lang.Boolean> |
SETTING_HTTP_TCP_KEEP_ALIVE |
static org.elasticsearch.common.settings.Setting<java.lang.Boolean> |
SETTING_HTTP_TCP_NO_DELAY |
static org.elasticsearch.common.settings.Setting<org.elasticsearch.common.unit.ByteSizeValue> |
SETTING_HTTP_TCP_RECEIVE_BUFFER_SIZE |
static org.elasticsearch.common.settings.Setting<java.lang.Boolean> |
SETTING_HTTP_TCP_REUSE_ADDRESS |
static org.elasticsearch.common.settings.Setting<org.elasticsearch.common.unit.ByteSizeValue> |
SETTING_HTTP_TCP_SEND_BUFFER_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 and 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) |
| Modifier and Type | Method and Description |
|---|---|
org.elasticsearch.common.transport.BoundTransportAddress |
boundAddress() |
io.netty.channel.ChannelHandler |
configureServerChannelHandler() |
protected void |
dispatchRequest(org.elasticsearch.rest.RestRequest request,
org.elasticsearch.rest.RestChannel channel) |
protected void |
doClose() |
protected void |
doStart() |
protected void |
doStop() |
protected void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
java.lang.Throwable cause) |
Netty4CorsConfig |
getCorsConfig() |
void |
httpServerAdapter(org.elasticsearch.http.HttpServerAdapter httpServerAdapter) |
org.elasticsearch.http.HttpInfo |
info() |
org.elasticsearch.common.settings.Settings |
settings() |
org.elasticsearch.http.HttpStats |
stats() |
addLifecycleListener, close, lifecycleState, removeLifecycleListener, start, stoplogDeprecatedSetting, logRemovedSetting, nodeNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic static org.elasticsearch.common.settings.Setting<org.elasticsearch.common.unit.ByteSizeValue> SETTING_HTTP_NETTY_MAX_CUMULATION_BUFFER_CAPACITY
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<java.lang.Boolean> SETTING_HTTP_TCP_NO_DELAY
public static final org.elasticsearch.common.settings.Setting<java.lang.Boolean> SETTING_HTTP_TCP_KEEP_ALIVE
public static final org.elasticsearch.common.settings.Setting<java.lang.Boolean> SETTING_HTTP_TCP_BLOCKING_SERVER
public static final org.elasticsearch.common.settings.Setting<java.lang.Boolean> SETTING_HTTP_TCP_REUSE_ADDRESS
public static final org.elasticsearch.common.settings.Setting<org.elasticsearch.common.unit.ByteSizeValue> SETTING_HTTP_TCP_SEND_BUFFER_SIZE
public static final org.elasticsearch.common.settings.Setting<org.elasticsearch.common.unit.ByteSizeValue> SETTING_HTTP_TCP_RECEIVE_BUFFER_SIZE
public static final org.elasticsearch.common.settings.Setting<org.elasticsearch.common.unit.ByteSizeValue> SETTING_HTTP_NETTY_RECEIVE_PREDICTOR_SIZE
public static final org.elasticsearch.common.settings.Setting<org.elasticsearch.common.unit.ByteSizeValue> SETTING_HTTP_NETTY_RECEIVE_PREDICTOR_MIN
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 blockingServer
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 org.elasticsearch.common.unit.ByteSizeValue maxCumulationBufferCapacity
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
protected volatile org.elasticsearch.http.HttpServerAdapter httpServerAdapter
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)
public org.elasticsearch.common.settings.Settings settings()
public void httpServerAdapter(org.elasticsearch.http.HttpServerAdapter httpServerAdapter)
httpServerAdapter in interface org.elasticsearch.http.HttpServerTransportprotected void doStart()
doStart in class org.elasticsearch.common.component.AbstractLifecycleComponentprotected void doStop()
doStop in class org.elasticsearch.common.component.AbstractLifecycleComponentprotected void doClose()
doClose in class org.elasticsearch.common.component.AbstractLifecycleComponentpublic org.elasticsearch.common.transport.BoundTransportAddress boundAddress()
boundAddress in interface org.elasticsearch.http.HttpServerTransportpublic org.elasticsearch.http.HttpInfo info()
info in interface org.elasticsearch.http.HttpServerTransportpublic org.elasticsearch.http.HttpStats stats()
stats in interface org.elasticsearch.http.HttpServerTransportpublic Netty4CorsConfig getCorsConfig()
protected void dispatchRequest(org.elasticsearch.rest.RestRequest request,
org.elasticsearch.rest.RestChannel channel)
protected void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
java.lang.Throwable cause)
throws java.lang.Exception
java.lang.Exceptionpublic io.netty.channel.ChannelHandler configureServerChannelHandler()