public class Netty4Transport
extends org.elasticsearch.transport.TcpTransport
| Modifier and Type | Class | Description |
|---|---|---|
protected class |
Netty4Transport.ClientChannelInitializer |
|
protected class |
Netty4Transport.ServerChannelInitializer |
org.elasticsearch.transport.TcpTransport.HttpOnTransportException, org.elasticsearch.transport.TcpTransport.NodeChannels, org.elasticsearch.transport.TcpTransport.ProfileSettings, org.elasticsearch.transport.TcpTransport.ScheduledPing| Modifier and Type | Field | Description |
|---|---|---|
protected io.netty.bootstrap.Bootstrap |
bootstrap |
|
static org.elasticsearch.common.settings.Setting<java.lang.Integer> |
NETTY_BOSS_COUNT |
|
static org.elasticsearch.common.settings.Setting<org.elasticsearch.common.unit.ByteSizeValue> |
NETTY_RECEIVE_PREDICTOR_MAX |
|
static org.elasticsearch.common.settings.Setting<org.elasticsearch.common.unit.ByteSizeValue> |
NETTY_RECEIVE_PREDICTOR_MIN |
|
static org.elasticsearch.common.settings.Setting<org.elasticsearch.common.unit.ByteSizeValue> |
NETTY_RECEIVE_PREDICTOR_SIZE |
|
protected org.elasticsearch.common.unit.ByteSizeValue |
receivePredictorMax |
|
protected org.elasticsearch.common.unit.ByteSizeValue |
receivePredictorMin |
|
protected io.netty.channel.RecvByteBufAllocator |
recvByteBufAllocator |
|
protected java.util.Map<java.lang.String,io.netty.bootstrap.ServerBootstrap> |
serverBootstraps |
|
static org.elasticsearch.common.settings.Setting<java.lang.Integer> |
WORKER_COUNT |
|
protected int |
workerCount |
deprecationLogger, logger, settingsBIND_HOST, BIND_HOST_PROFILE, compress, CONNECTIONS_PER_NODE_BULK, CONNECTIONS_PER_NODE_PING, CONNECTIONS_PER_NODE_RECOVERY, CONNECTIONS_PER_NODE_REG, CONNECTIONS_PER_NODE_STATE, DEFAULT_PROFILE, defaultConnectionProfile, HOST, networkService, PING_DATA_SIZE, PING_SCHEDULE, PORT, PORT_PROFILE, profileSettings, PUBLISH_HOST, PUBLISH_HOST_PROFILE, PUBLISH_PORT, PUBLISH_PORT_PROFILE, scheduledPing, TCP_CONNECT_TIMEOUT, TCP_KEEP_ALIVE, TCP_KEEP_ALIVE_PROFILE, TCP_NO_DELAY, TCP_NO_DELAY_PROFILE, TCP_RECEIVE_BUFFER_SIZE, TCP_RECEIVE_BUFFER_SIZE_PROFILE, TCP_REUSE_ADDRESS, TCP_REUSE_ADDRESS_PROFILE, TCP_SEND_BUFFER_SIZE, TCP_SEND_BUFFER_SIZE_PROFILE, threadPool, TRANSPORT_CLIENT_BOSS_THREAD_NAME_PREFIX, TRANSPORT_SERVER_WORKER_THREAD_NAME_PREFIX| Constructor | Description |
|---|---|
Netty4Transport(org.elasticsearch.common.settings.Settings settings,
org.elasticsearch.threadpool.ThreadPool threadPool,
org.elasticsearch.common.network.NetworkService networkService,
org.elasticsearch.common.util.BigArrays bigArrays,
org.elasticsearch.common.io.stream.NamedWriteableRegistry namedWriteableRegistry,
org.elasticsearch.indices.breaker.CircuitBreakerService circuitBreakerService) |
| Modifier and Type | Method | Description |
|---|---|---|
protected NettyTcpChannel |
bind(java.lang.String name,
java.net.InetSocketAddress address) |
|
protected void |
doStart() |
|
protected void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
java.lang.Throwable cause) |
|
protected io.netty.channel.ChannelHandler |
getClientChannelInitializer() |
|
protected io.netty.channel.ChannelHandler |
getServerChannelInitializer(java.lang.String name) |
|
protected NettyTcpChannel |
initiateChannel(org.elasticsearch.cluster.node.DiscoveryNode node,
org.elasticsearch.common.unit.TimeValue connectTimeout,
org.elasticsearch.action.ActionListener<java.lang.Void> listener) |
|
protected void |
stopInternal() |
logDeprecatedSetting, logRemovedSetting, nodeNameaddLifecycleListener, close, lifecycleState, removeLifecycleListener, start, stopaddLifecycleListener, lifecycleState, removeLifecycleListener, start, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddressesFromString, bindServer, bindToPort, boundAddress, canCompress, connectToNode, disconnectFromNode, doClose, doStop, ensureOpen, executeHandshake, getConnection, getCurrentVersion, getInFlightRequestBreaker, getLocalAddresses, getProfileSettings, getStats, handleRequest, messageReceived, newRequestId, nodeConnected, onException, openConnection, profileBoundAddresses, resolveConnectionProfile, resolvePublishPort, sendErrorResponse, sendResponse, serverAcceptedChannel, setTransportService, validateMessageHeader, validateRequestpublic static final org.elasticsearch.common.settings.Setting<java.lang.Integer> WORKER_COUNT
public static final org.elasticsearch.common.settings.Setting<org.elasticsearch.common.unit.ByteSizeValue> NETTY_RECEIVE_PREDICTOR_SIZE
public static final org.elasticsearch.common.settings.Setting<org.elasticsearch.common.unit.ByteSizeValue> NETTY_RECEIVE_PREDICTOR_MIN
public static final org.elasticsearch.common.settings.Setting<org.elasticsearch.common.unit.ByteSizeValue> NETTY_RECEIVE_PREDICTOR_MAX
public static final org.elasticsearch.common.settings.Setting<java.lang.Integer> NETTY_BOSS_COUNT
protected final io.netty.channel.RecvByteBufAllocator recvByteBufAllocator
protected final int workerCount
protected final org.elasticsearch.common.unit.ByteSizeValue receivePredictorMin
protected final org.elasticsearch.common.unit.ByteSizeValue receivePredictorMax
protected volatile io.netty.bootstrap.Bootstrap bootstrap
protected final java.util.Map<java.lang.String,io.netty.bootstrap.ServerBootstrap> serverBootstraps
public Netty4Transport(org.elasticsearch.common.settings.Settings settings,
org.elasticsearch.threadpool.ThreadPool threadPool,
org.elasticsearch.common.network.NetworkService networkService,
org.elasticsearch.common.util.BigArrays bigArrays,
org.elasticsearch.common.io.stream.NamedWriteableRegistry namedWriteableRegistry,
org.elasticsearch.indices.breaker.CircuitBreakerService circuitBreakerService)
protected void doStart()
doStart in class org.elasticsearch.transport.TcpTransportprotected io.netty.channel.ChannelHandler getServerChannelInitializer(java.lang.String name)
protected io.netty.channel.ChannelHandler getClientChannelInitializer()
protected final void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
java.lang.Throwable cause)
throws java.lang.Exception
java.lang.Exceptionprotected NettyTcpChannel initiateChannel(org.elasticsearch.cluster.node.DiscoveryNode node, org.elasticsearch.common.unit.TimeValue connectTimeout, org.elasticsearch.action.ActionListener<java.lang.Void> listener) throws java.io.IOException
initiateChannel in class org.elasticsearch.transport.TcpTransportjava.io.IOExceptionprotected NettyTcpChannel bind(java.lang.String name, java.net.InetSocketAddress address)
bind in class org.elasticsearch.transport.TcpTransportprotected void stopInternal()
stopInternal in class org.elasticsearch.transport.TcpTransport