Class NioTransport

java.lang.Object
org.elasticsearch.common.component.AbstractLifecycleComponent
org.elasticsearch.transport.TcpTransport
org.elasticsearch.transport.nio.NioTransport
All Implemented Interfaces:
Closeable, AutoCloseable, org.elasticsearch.common.component.LifecycleComponent, org.elasticsearch.core.Releasable, org.elasticsearch.transport.Transport

public class NioTransport extends org.elasticsearch.transport.TcpTransport
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    protected static class 
     

    Nested classes/interfaces inherited from class org.elasticsearch.transport.TcpTransport

    org.elasticsearch.transport.TcpTransport.HttpRequestOnTransportException, org.elasticsearch.transport.TcpTransport.NodeChannels, org.elasticsearch.transport.TcpTransport.ProfileSettings

    Nested classes/interfaces inherited from interface org.elasticsearch.transport.Transport

    org.elasticsearch.transport.Transport.Connection, org.elasticsearch.transport.Transport.RequestHandlers, org.elasticsearch.transport.Transport.ResponseContext<T extends org.elasticsearch.transport.TransportResponse>, org.elasticsearch.transport.Transport.ResponseHandlers
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected PageAllocator
     

    Fields inherited from class org.elasticsearch.transport.TcpTransport

    networkService, pageCacheRecycler, profileSettings, settings, threadPool, TRANSPORT_WORKER_THREAD_NAME_PREFIX

    Fields inherited from class org.elasticsearch.common.component.AbstractLifecycleComponent

    lifecycle
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    NioTransport​(org.elasticsearch.common.settings.Settings settings, org.elasticsearch.Version version, org.elasticsearch.threadpool.ThreadPool threadPool, org.elasticsearch.common.network.NetworkService networkService, org.elasticsearch.common.util.PageCacheRecycler pageCacheRecycler, org.elasticsearch.common.io.stream.NamedWriteableRegistry namedWriteableRegistry, org.elasticsearch.indices.breaker.CircuitBreakerService circuitBreakerService, NioGroupFactory groupFactory)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    acceptChannel​(org.elasticsearch.nio.NioSocketChannel channel)
     
    bind​(String name, InetSocketAddress address)
     
    protected Function<org.elasticsearch.cluster.node.DiscoveryNode,​NioTransport.TcpChannelFactory>
    clientChannelFactoryFunction​(org.elasticsearch.transport.TcpTransport.ProfileSettings profileSettings)
     
    protected void
     
    protected NioTcpChannel
    initiateChannel​(org.elasticsearch.cluster.node.DiscoveryNode node)
     
    serverChannelFactory​(org.elasticsearch.transport.TcpTransport.ProfileSettings profileSettings)
     
    protected void
     

    Methods 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, setSlowLogThreshold

    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.core.Releasable

    close

    Methods inherited from interface org.elasticsearch.transport.Transport

    isSecure, registerRequestHandler
  • Field Details

  • Constructor Details

    • NioTransport

      protected NioTransport(org.elasticsearch.common.settings.Settings settings, org.elasticsearch.Version version, org.elasticsearch.threadpool.ThreadPool threadPool, org.elasticsearch.common.network.NetworkService networkService, org.elasticsearch.common.util.PageCacheRecycler pageCacheRecycler, org.elasticsearch.common.io.stream.NamedWriteableRegistry namedWriteableRegistry, org.elasticsearch.indices.breaker.CircuitBreakerService circuitBreakerService, NioGroupFactory groupFactory)
  • Method Details

    • bind

      protected NioTcpServerChannel bind(String name, InetSocketAddress address) throws IOException
      Specified by:
      bind in class org.elasticsearch.transport.TcpTransport
      Throws:
      IOException
    • initiateChannel

      protected NioTcpChannel initiateChannel(org.elasticsearch.cluster.node.DiscoveryNode node) throws IOException
      Specified by:
      initiateChannel in class org.elasticsearch.transport.TcpTransport
      Throws:
      IOException
    • doStart

      protected void doStart()
      Overrides:
      doStart in class org.elasticsearch.transport.TcpTransport
    • stopInternal

      protected void stopInternal()
      Specified by:
      stopInternal in class org.elasticsearch.transport.TcpTransport
    • acceptChannel

      protected void acceptChannel(org.elasticsearch.nio.NioSocketChannel channel)
    • serverChannelFactory

      protected NioTransport.TcpChannelFactory serverChannelFactory(org.elasticsearch.transport.TcpTransport.ProfileSettings profileSettings)
    • clientChannelFactoryFunction

      protected Function<org.elasticsearch.cluster.node.DiscoveryNode,​NioTransport.TcpChannelFactory> clientChannelFactoryFunction(org.elasticsearch.transport.TcpTransport.ProfileSettings profileSettings)