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:
Closeable,AutoCloseable,LifecycleComponent,org.elasticsearch.core.Releasable,Transport
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.transport.TcpTransport
TcpTransport.HttpRequestOnTransportException, TcpTransport.NodeChannels, TcpTransport.ProfileSettingsNested classes/interfaces inherited from interface org.elasticsearch.transport.Transport
Transport.Connection, Transport.RequestHandlers, Transport.ResponseContext<T extends TransportResponse>, Transport.ResponseHandlers -
Field Summary
Fields inherited from class org.elasticsearch.transport.TcpTransport
networkService, pageCacheRecycler, profileSettingsSet, settings, threadPool, TRANSPORT_WORKER_THREAD_NAME_PREFIXFields inherited from class org.elasticsearch.common.component.AbstractLifecycleComponent
lifecycle -
Constructor Summary
ConstructorsConstructorDescriptionMockNioTransport(Settings settings, Version version, ThreadPool threadPool, NetworkService networkService, PageCacheRecycler pageCacheRecycler, NamedWriteableRegistry namedWriteableRegistry, CircuitBreakerService circuitBreakerService) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.elasticsearch.transport.nio.MockNioTransport.MockServerChannelbind(String name, InetSocketAddress address) protected voiddoStart()protected org.elasticsearch.transport.nio.MockNioTransport.MockSocketChannelinitiateChannel(DiscoveryNode node) protected ConnectionProfilemaybeOverrideConnectionProfile(ConnectionProfile connectionProfile) protected voidMethods inherited from class org.elasticsearch.transport.TcpTransport
addressesFromString, bindServer, boundAddress, doClose, doStop, executeHandshake, getDefaultSeedAddresses, getInflightBreaker, getProfileSettings, getRequestHandlers, getResponseHandlers, getStats, getStatsTracker, getThreadPool, getVersion, inboundMessage, onException, onServerException, openConnection, profileBoundAddresses, readMessageLength, serverAcceptedChannel, setMessageListener, setSlowLogThresholdMethods inherited from class org.elasticsearch.common.component.AbstractLifecycleComponent
addLifecycleListener, close, lifecycleState, removeLifecycleListener, start, stopMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.common.component.LifecycleComponent
addLifecycleListener, lifecycleState, removeLifecycleListener, start, stopMethods inherited from interface org.elasticsearch.core.Releasable
closeMethods inherited from interface org.elasticsearch.transport.Transport
isSecure, registerRequestHandler
-
Constructor Details
-
MockNioTransport
public MockNioTransport(Settings settings, Version version, ThreadPool threadPool, NetworkService networkService, PageCacheRecycler pageCacheRecycler, NamedWriteableRegistry namedWriteableRegistry, CircuitBreakerService circuitBreakerService)
-
-
Method Details
-
bind
protected org.elasticsearch.transport.nio.MockNioTransport.MockServerChannel bind(String name, InetSocketAddress address) throws IOException - Specified by:
bindin classTcpTransport- Throws:
IOException
-
initiateChannel
protected org.elasticsearch.transport.nio.MockNioTransport.MockSocketChannel initiateChannel(DiscoveryNode node) throws IOException - Specified by:
initiateChannelin classTcpTransport- Throws:
IOException
-
doStart
protected void doStart()- Specified by:
doStartin classAbstractLifecycleComponent
-
stopInternal
protected void stopInternal()- Specified by:
stopInternalin classTcpTransport
-
maybeOverrideConnectionProfile
- Overrides:
maybeOverrideConnectionProfilein classTcpTransport
-