Class Netty4HttpServerTransport

java.lang.Object
org.elasticsearch.common.component.AbstractLifecycleComponent
org.elasticsearch.http.AbstractHttpServerTransport
org.elasticsearch.http.netty4.Netty4HttpServerTransport
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 Netty4HttpServerTransport extends org.elasticsearch.http.AbstractHttpServerTransport
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    protected static class 
     

    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
    static org.elasticsearch.common.settings.Setting<Integer>
     
    static org.elasticsearch.common.settings.Setting<org.elasticsearch.common.unit.ByteSizeValue>
     
    static org.elasticsearch.common.settings.Setting<Integer>
     

    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
    Netty4HttpServerTransport​(org.elasticsearch.common.settings.Settings settings, org.elasticsearch.common.network.NetworkService networkService, org.elasticsearch.common.util.BigArrays bigArrays, org.elasticsearch.threadpool.ThreadPool threadPool, org.elasticsearch.common.xcontent.NamedXContentRegistry xContentRegistry, org.elasticsearch.http.HttpServerTransport.Dispatcher dispatcher, org.elasticsearch.common.settings.ClusterSettings clusterSettings, SharedGroupFactory sharedGroupFactory)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.elasticsearch.http.HttpServerChannel
    bind​(InetSocketAddress socketAddress)
     
    io.netty.channel.ChannelHandler
     
    protected void
     
    void
    onException​(org.elasticsearch.http.HttpChannel channel, Exception cause)
     
    org.elasticsearch.common.settings.Settings
     
    protected void
     

    Methods inherited from class org.elasticsearch.http.AbstractHttpServerTransport

    bindServer, boundAddress, doClose, doStop, incomingRequest, info, 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

    • SETTING_HTTP_NETTY_MAX_COMPOSITE_BUFFER_COMPONENTS

      public static org.elasticsearch.common.settings.Setting<Integer> SETTING_HTTP_NETTY_MAX_COMPOSITE_BUFFER_COMPONENTS
    • SETTING_HTTP_WORKER_COUNT

      public static final org.elasticsearch.common.settings.Setting<Integer> SETTING_HTTP_WORKER_COUNT
    • SETTING_HTTP_NETTY_RECEIVE_PREDICTOR_SIZE

      public static final org.elasticsearch.common.settings.Setting<org.elasticsearch.common.unit.ByteSizeValue> SETTING_HTTP_NETTY_RECEIVE_PREDICTOR_SIZE
  • Constructor Details

    • Netty4HttpServerTransport

      public Netty4HttpServerTransport(org.elasticsearch.common.settings.Settings settings, org.elasticsearch.common.network.NetworkService networkService, org.elasticsearch.common.util.BigArrays bigArrays, org.elasticsearch.threadpool.ThreadPool threadPool, org.elasticsearch.common.xcontent.NamedXContentRegistry xContentRegistry, org.elasticsearch.http.HttpServerTransport.Dispatcher dispatcher, org.elasticsearch.common.settings.ClusterSettings clusterSettings, SharedGroupFactory sharedGroupFactory)
  • Method Details

    • settings

      public org.elasticsearch.common.settings.Settings settings()
    • doStart

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

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

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

      public void onException(org.elasticsearch.http.HttpChannel channel, Exception cause)
      Overrides:
      onException in class org.elasticsearch.http.AbstractHttpServerTransport
    • configureServerChannelHandler

      public io.netty.channel.ChannelHandler configureServerChannelHandler()