public class Netty3Transport
extends org.elasticsearch.transport.TcpTransport<org.jboss.netty.channel.Channel>
| Modifier and Type | Class and Description |
|---|---|
protected static class |
Netty3Transport.ClientChannelPipelineFactory |
protected static class |
Netty3Transport.ServerChannelPipelineFactory |
| Modifier and Type | Field and Description |
|---|---|
protected org.jboss.netty.bootstrap.ClientBootstrap |
clientBootstrap |
protected int |
maxCompositeBufferComponents |
protected org.elasticsearch.common.unit.ByteSizeValue |
maxCumulationBufferCapacity |
static org.elasticsearch.common.settings.Setting<java.lang.Integer> |
NETTY_BOSS_COUNT |
static org.elasticsearch.common.settings.Setting<java.lang.Integer> |
NETTY_MAX_COMPOSITE_BUFFER_COMPONENTS |
static org.elasticsearch.common.settings.Setting<org.elasticsearch.common.unit.ByteSizeValue> |
NETTY_MAX_CUMULATION_BUFFER_CAPACITY |
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.jboss.netty.channel.ReceiveBufferSizePredictorFactory |
receiveBufferSizePredictorFactory |
protected org.elasticsearch.common.unit.ByteSizeValue |
receivePredictorMax |
protected org.elasticsearch.common.unit.ByteSizeValue |
receivePredictorMin |
protected java.util.Map<java.lang.String,org.jboss.netty.bootstrap.ServerBootstrap> |
serverBootstraps |
static org.elasticsearch.common.settings.Setting<java.lang.Integer> |
WORKER_COUNT |
protected int |
workerCount |
blockingClient, boundAddress, compress, connectedNodes, connectionLock, CONNECTIONS_PER_NODE_BULK, CONNECTIONS_PER_NODE_PING, CONNECTIONS_PER_NODE_RECOVERY, CONNECTIONS_PER_NODE_REG, CONNECTIONS_PER_NODE_STATE, defaultConnectionProfile, globalLock, networkService, PING_SCHEDULE, profileBoundAddresses, scheduledPing, serverChannels, TCP_BLOCKING_CLIENT, TCP_BLOCKING_SERVER, TCP_CONNECT_TIMEOUT, TCP_KEEP_ALIVE, TCP_NO_DELAY, TCP_RECEIVE_BUFFER_SIZE, TCP_REUSE_ADDRESS, TCP_SEND_BUFFER_SIZE, threadPool, TRANSPORT_CLIENT_BOSS_THREAD_NAME_PREFIX, TRANSPORT_CLIENT_WORKER_THREAD_NAME_PREFIX, TRANSPORT_SERVER_BOSS_THREAD_NAME_PREFIX, TRANSPORT_SERVER_WORKER_THREAD_NAME_PREFIX, transportServiceAdapter| Constructor and Description |
|---|
Netty3Transport(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 and Description |
|---|---|
protected org.jboss.netty.channel.Channel |
bind(java.lang.String name,
java.net.InetSocketAddress address) |
protected void |
closeChannels(java.util.List<org.jboss.netty.channel.Channel> channels) |
org.jboss.netty.channel.ChannelPipelineFactory |
configureClientChannelPipelineFactory() |
org.jboss.netty.channel.ChannelPipelineFactory |
configureServerChannelPipelineFactory(java.lang.String name,
org.elasticsearch.common.settings.Settings settings) |
protected org.elasticsearch.transport.TcpTransport.NodeChannels |
connectToChannels(org.elasticsearch.cluster.node.DiscoveryNode node,
org.elasticsearch.transport.ConnectionProfile profile,
java.util.function.Consumer<org.jboss.netty.channel.Channel> onChannelClose) |
protected java.lang.String |
deprecationMessage() |
protected void |
doStart() |
protected void |
exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ExceptionEvent e) |
protected java.net.InetSocketAddress |
getLocalAddress(org.jboss.netty.channel.Channel channel) |
protected boolean |
isOpen(org.jboss.netty.channel.Channel channel) |
protected void |
sendMessage(org.jboss.netty.channel.Channel channel,
org.elasticsearch.common.bytes.BytesReference reference,
java.lang.Runnable sendListener) |
long |
serverOpen() |
protected void |
stopInternal() |
addressesFromString, addressSupported, bindServer, bindToPort, boundAddress, buildProfileSettings, canCompress, connectToNode, disconnectFromNode, disconnectFromNode, disconnectFromNodeChannel, doClose, doStop, ensureOpen, executeHandshake, getConnection, getCurrentVersion, getInFlightRequestBreaker, getLocalAddresses, handleRequest, messageReceived, newRequestId, nodeConnected, onException, openConnection, profileBoundAddresses, resolvePublishPort, sendErrorResponse, sendResponse, transportServiceAdapter, validateMessageHeader, validateRequestaddLifecycleListener, close, lifecycleState, removeLifecycleListener, start, stoplogDeprecatedSetting, logRemovedSetting, nodeNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic 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_MAX_CUMULATION_BUFFER_CAPACITY
public static final org.elasticsearch.common.settings.Setting<java.lang.Integer> NETTY_MAX_COMPOSITE_BUFFER_COMPONENTS
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 org.elasticsearch.common.unit.ByteSizeValue maxCumulationBufferCapacity
protected final int maxCompositeBufferComponents
protected final org.jboss.netty.channel.ReceiveBufferSizePredictorFactory receiveBufferSizePredictorFactory
protected final int workerCount
protected final org.elasticsearch.common.unit.ByteSizeValue receivePredictorMin
protected final org.elasticsearch.common.unit.ByteSizeValue receivePredictorMax
protected volatile org.jboss.netty.bootstrap.ClientBootstrap clientBootstrap
protected final java.util.Map<java.lang.String,org.jboss.netty.bootstrap.ServerBootstrap> serverBootstraps
public Netty3Transport(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 java.lang.String deprecationMessage()
protected void doStart()
doStart in class org.elasticsearch.transport.TcpTransport<org.jboss.netty.channel.Channel>protected final void exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ExceptionEvent e)
throws java.lang.Exception
java.lang.Exceptionpublic long serverOpen()
protected org.elasticsearch.transport.TcpTransport.NodeChannels connectToChannels(org.elasticsearch.cluster.node.DiscoveryNode node,
org.elasticsearch.transport.ConnectionProfile profile,
java.util.function.Consumer<org.jboss.netty.channel.Channel> onChannelClose)
connectToChannels in class org.elasticsearch.transport.TcpTransport<org.jboss.netty.channel.Channel>public org.jboss.netty.channel.ChannelPipelineFactory configureClientChannelPipelineFactory()
public org.jboss.netty.channel.ChannelPipelineFactory configureServerChannelPipelineFactory(java.lang.String name,
org.elasticsearch.common.settings.Settings settings)
protected void sendMessage(org.jboss.netty.channel.Channel channel,
org.elasticsearch.common.bytes.BytesReference reference,
java.lang.Runnable sendListener)
sendMessage in class org.elasticsearch.transport.TcpTransport<org.jboss.netty.channel.Channel>protected void closeChannels(java.util.List<org.jboss.netty.channel.Channel> channels)
closeChannels in class org.elasticsearch.transport.TcpTransport<org.jboss.netty.channel.Channel>protected java.net.InetSocketAddress getLocalAddress(org.jboss.netty.channel.Channel channel)
getLocalAddress in class org.elasticsearch.transport.TcpTransport<org.jboss.netty.channel.Channel>protected org.jboss.netty.channel.Channel bind(java.lang.String name,
java.net.InetSocketAddress address)
bind in class org.elasticsearch.transport.TcpTransport<org.jboss.netty.channel.Channel>protected boolean isOpen(org.jboss.netty.channel.Channel channel)
isOpen in class org.elasticsearch.transport.TcpTransport<org.jboss.netty.channel.Channel>protected void stopInternal()
stopInternal in class org.elasticsearch.transport.TcpTransport<org.jboss.netty.channel.Channel>