Class NioHttpServerTransport

java.lang.Object
org.elasticsearch.common.component.AbstractLifecycleComponent
org.elasticsearch.http.AbstractHttpServerTransport
org.elasticsearch.http.nio.NioHttpServerTransport
All Implemented Interfaces:
Closeable, AutoCloseable, org.elasticsearch.common.component.LifecycleComponent, org.elasticsearch.core.Releasable, org.elasticsearch.http.HttpServerTransport, org.elasticsearch.node.ReportingService<org.elasticsearch.http.HttpInfo>

public class NioHttpServerTransport extends org.elasticsearch.http.AbstractHttpServerTransport
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.elasticsearch.http.HttpServerTransport

    org.elasticsearch.http.HttpServerTransport.Dispatcher

    Nested classes/interfaces inherited from interface org.elasticsearch.node.ReportingService

    org.elasticsearch.node.ReportingService.Info
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected PageAllocator
     
    protected boolean
     
    protected boolean
     
    protected int
     
    protected int
     
    protected int
     
    protected boolean
     
    protected int
     
    protected int
     

    Fields inherited from class org.elasticsearch.http.AbstractHttpServerTransport

    bigArrays, corsHandler, dispatcher, handlingSettings, lastClientStatsPruneTime, maxContentLength, networkService, port, settings, threadPool

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

    lifecycle

    Fields inherited from interface org.elasticsearch.http.HttpServerTransport

    HTTP_SERVER_WORKER_THREAD_NAME_PREFIX
  • Constructor Summary

    Constructors
    Constructor
    Description
    NioHttpServerTransport​(org.elasticsearch.common.settings.Settings settings, org.elasticsearch.common.network.NetworkService networkService, org.elasticsearch.common.util.BigArrays bigArrays, org.elasticsearch.common.util.PageCacheRecycler pageCacheRecycler, org.elasticsearch.threadpool.ThreadPool threadPool, org.elasticsearch.common.xcontent.NamedXContentRegistry xContentRegistry, org.elasticsearch.http.HttpServerTransport.Dispatcher dispatcher, NioGroupFactory nioGroupFactory, org.elasticsearch.common.settings.ClusterSettings clusterSettings)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    acceptChannel​(org.elasticsearch.nio.NioSocketChannel socketChannel)
     
    protected org.elasticsearch.http.HttpServerChannel
    bind​(InetSocketAddress socketAddress)
     
    protected org.elasticsearch.nio.ChannelFactory<NioHttpServerChannel,​NioHttpChannel>
     
    protected void
     
    org.apache.logging.log4j.Logger
     
    protected void
     

    Methods inherited from class org.elasticsearch.http.AbstractHttpServerTransport

    bindServer, boundAddress, doClose, doStop, incomingRequest, info, onException, onServerException, serverAcceptedChannel, stats

    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
  • Field Details

    • pageAllocator

      protected final PageAllocator pageAllocator
    • tcpNoDelay

      protected final boolean tcpNoDelay
    • tcpKeepAlive

      protected final boolean tcpKeepAlive
    • tcpKeepIdle

      protected final int tcpKeepIdle
    • tcpKeepInterval

      protected final int tcpKeepInterval
    • tcpKeepCount

      protected final int tcpKeepCount
    • reuseAddress

      protected final boolean reuseAddress
    • tcpSendBufferSize

      protected final int tcpSendBufferSize
    • tcpReceiveBufferSize

      protected final int tcpReceiveBufferSize
  • Constructor Details

    • NioHttpServerTransport

      public NioHttpServerTransport(org.elasticsearch.common.settings.Settings settings, org.elasticsearch.common.network.NetworkService networkService, org.elasticsearch.common.util.BigArrays bigArrays, org.elasticsearch.common.util.PageCacheRecycler pageCacheRecycler, org.elasticsearch.threadpool.ThreadPool threadPool, org.elasticsearch.common.xcontent.NamedXContentRegistry xContentRegistry, org.elasticsearch.http.HttpServerTransport.Dispatcher dispatcher, NioGroupFactory nioGroupFactory, org.elasticsearch.common.settings.ClusterSettings clusterSettings)
  • Method Details

    • getLogger

      public org.apache.logging.log4j.Logger getLogger()
    • doStart

      protected void doStart()
      Specified by:
      doStart in class org.elasticsearch.common.component.AbstractLifecycleComponent
    • stopInternal

      protected void stopInternal()
      Specified by:
      stopInternal in class org.elasticsearch.http.AbstractHttpServerTransport
    • bind

      protected org.elasticsearch.http.HttpServerChannel bind(InetSocketAddress socketAddress) throws IOException
      Specified by:
      bind in class org.elasticsearch.http.AbstractHttpServerTransport
      Throws:
      IOException
    • channelFactory

      protected org.elasticsearch.nio.ChannelFactory<NioHttpServerChannel,​NioHttpChannel> channelFactory()
    • acceptChannel

      protected void acceptChannel(org.elasticsearch.nio.NioSocketChannel socketChannel)