Package org.elasticsearch.transport.nio
Class MockNioTransport
- java.lang.Object
-
- org.elasticsearch.common.component.AbstractLifecycleComponent
-
- org.elasticsearch.transport.TcpTransport
-
- org.elasticsearch.transport.nio.MockNioTransport
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,LifecycleComponent
,Releasable
,Transport
public class MockNioTransport extends TcpTransport
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.elasticsearch.transport.TcpTransport
TcpTransport.HttpOnTransportException, TcpTransport.NodeChannels, TcpTransport.ProfileSettings
-
Nested classes/interfaces inherited from interface org.elasticsearch.transport.Transport
Transport.Connection, Transport.ResponseContext<T extends TransportResponse>, Transport.ResponseHandlers
-
-
Field Summary
-
Fields inherited from class org.elasticsearch.transport.TcpTransport
bigArrays, networkService, pageCacheRecycler, profileSettings, settings, threadPool, TRANSPORT_WORKER_THREAD_NAME_PREFIX
-
Fields inherited from class org.elasticsearch.common.component.AbstractLifecycleComponent
lifecycle
-
-
Constructor Summary
Constructors Constructor Description MockNioTransport(Settings settings, Version version, ThreadPool threadPool, NetworkService networkService, PageCacheRecycler pageCacheRecycler, NamedWriteableRegistry namedWriteableRegistry, CircuitBreakerService circuitBreakerService)
-
Method Summary
Modifier and Type Method Description protected org.elasticsearch.transport.nio.MockNioTransport.MockServerChannel
bind(java.lang.String name, java.net.InetSocketAddress address)
protected void
doStart()
protected org.elasticsearch.transport.nio.MockNioTransport.MockSocketChannel
initiateChannel(DiscoveryNode node)
protected ConnectionProfile
maybeOverrideConnectionProfile(ConnectionProfile connectionProfile)
protected void
stopInternal()
-
Methods inherited from class org.elasticsearch.transport.TcpTransport
addMessageListener, addressesFromString, bindServer, boundAddress, consumeNetworkReads, doClose, doStop, ensureOpen, executeHandshake, getInFlightRequestBreaker, getLocalAddresses, getProfileSettings, getRequestHandler, getResponseHandlers, getStats, handleRequest, inboundMessage, messageReceived, onException, onServerException, openConnection, profileBoundAddresses, readMessageLength, registerRequestHandler, removeMessageListener, sendErrorResponse, sendResponse, serverAcceptedChannel, validateRequest
-
Methods inherited from class org.elasticsearch.common.component.AbstractLifecycleComponent
addLifecycleListener, close, lifecycleState, removeLifecycleListener, start, stop
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.common.component.LifecycleComponent
addLifecycleListener, lifecycleState, removeLifecycleListener, start, stop
-
Methods inherited from interface org.elasticsearch.common.lease.Releasable
close
-
-
-
-
Constructor Detail
-
MockNioTransport
public MockNioTransport(Settings settings, Version version, ThreadPool threadPool, NetworkService networkService, PageCacheRecycler pageCacheRecycler, NamedWriteableRegistry namedWriteableRegistry, CircuitBreakerService circuitBreakerService)
-
-
Method Detail
-
bind
protected org.elasticsearch.transport.nio.MockNioTransport.MockServerChannel bind(java.lang.String name, java.net.InetSocketAddress address) throws java.io.IOException
- Specified by:
bind
in classTcpTransport
- Throws:
java.io.IOException
-
initiateChannel
protected org.elasticsearch.transport.nio.MockNioTransport.MockSocketChannel initiateChannel(DiscoveryNode node) throws java.io.IOException
- Specified by:
initiateChannel
in classTcpTransport
- Throws:
java.io.IOException
-
doStart
protected void doStart()
- Overrides:
doStart
in classTcpTransport
-
stopInternal
protected void stopInternal()
- Specified by:
stopInternal
in classTcpTransport
-
maybeOverrideConnectionProfile
protected ConnectionProfile maybeOverrideConnectionProfile(ConnectionProfile connectionProfile)
- Overrides:
maybeOverrideConnectionProfile
in classTcpTransport
-
-