Package org.elasticsearch.transport.nio
Class NioTransport
java.lang.Object
org.elasticsearch.common.component.AbstractLifecycleComponent
org.elasticsearch.transport.TcpTransport
org.elasticsearch.transport.nio.NioTransport
- All Implemented Interfaces:
Closeable,AutoCloseable,LifecycleComponent,org.elasticsearch.core.Releasable,Transport
-
Nested Class Summary
Nested ClassesNested 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
FieldsFields 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
ConstructorsModifierConstructorDescriptionprotectedNioTransport(Settings settings, Version version, ThreadPool threadPool, NetworkService networkService, PageCacheRecycler pageCacheRecycler, NamedWriteableRegistry namedWriteableRegistry, CircuitBreakerService circuitBreakerService, NioGroupFactory groupFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidacceptChannel(NioSocketChannel channel) protected NioTcpServerChannelbind(String name, InetSocketAddress address) protected Function<DiscoveryNode,NioTransport.TcpChannelFactory> clientChannelFactoryFunction(TcpTransport.ProfileSettings profileSettings) protected voiddoStart()protected NioTcpChannelinitiateChannel(DiscoveryNode node) protected NioTransport.TcpChannelFactoryserverChannelFactory(TcpTransport.ProfileSettings profileSettings) 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, maybeOverrideConnectionProfile, 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
-
Field Details
-
pageAllocator
-
-
Constructor Details
-
NioTransport
protected NioTransport(Settings settings, Version version, ThreadPool threadPool, NetworkService networkService, PageCacheRecycler pageCacheRecycler, NamedWriteableRegistry namedWriteableRegistry, CircuitBreakerService circuitBreakerService, NioGroupFactory groupFactory)
-
-
Method Details
-
bind
- Specified by:
bindin classTcpTransport- Throws:
IOException
-
initiateChannel
- Specified by:
initiateChannelin classTcpTransport- Throws:
IOException
-
doStart
protected void doStart()- Specified by:
doStartin classAbstractLifecycleComponent
-
stopInternal
protected void stopInternal()- Specified by:
stopInternalin classTcpTransport
-
acceptChannel
-
serverChannelFactory
protected NioTransport.TcpChannelFactory serverChannelFactory(TcpTransport.ProfileSettings profileSettings) -
clientChannelFactoryFunction
protected Function<DiscoveryNode,NioTransport.TcpChannelFactory> clientChannelFactoryFunction(TcpTransport.ProfileSettings profileSettings)
-