Package org.elasticsearch.http.netty4
Class Netty4HttpServerTransport
java.lang.Object
org.elasticsearch.common.component.AbstractLifecycleComponent
org.elasticsearch.http.AbstractHttpServerTransport
org.elasticsearch.http.netty4.Netty4HttpServerTransport
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,LifecycleComponent,Releasable,HttpServerTransport,ReportingService<HttpInfo>
public class Netty4HttpServerTransport extends AbstractHttpServerTransport
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classNetty4HttpServerTransport.HttpChannelHandlerNested classes/interfaces inherited from interface org.elasticsearch.http.HttpServerTransport
HttpServerTransport.DispatcherNested classes/interfaces inherited from interface org.elasticsearch.node.ReportingService
ReportingService.Info -
Field Summary
Fields Modifier and Type Field Description static Setting<java.lang.Integer>SETTING_HTTP_NETTY_MAX_COMPOSITE_BUFFER_COMPONENTSstatic Setting<ByteSizeValue>SETTING_HTTP_NETTY_RECEIVE_PREDICTOR_SIZEstatic Setting<java.lang.Integer>SETTING_HTTP_WORKER_COUNTFields inherited from class org.elasticsearch.http.AbstractHttpServerTransport
bigArrays, corsConfig, dispatcher, handlingSettings, maxContentLength, networkService, port, settings, threadPoolFields inherited from interface org.elasticsearch.http.HttpServerTransport
HTTP_SERVER_WORKER_THREAD_NAME_PREFIX -
Constructor Summary
Constructors Constructor Description Netty4HttpServerTransport(Settings settings, NetworkService networkService, BigArrays bigArrays, ThreadPool threadPool, NamedXContentRegistry xContentRegistry, HttpServerTransport.Dispatcher dispatcher, ClusterSettings clusterSettings) -
Method Summary
Modifier and Type Method Description protected HttpServerChannelbind(java.net.InetSocketAddress socketAddress)io.netty.channel.ChannelHandlerconfigureServerChannelHandler()protected voiddoStart()voidonException(HttpChannel channel, java.lang.Exception cause)Settingssettings()protected voidstopInternal()Methods inherited from class org.elasticsearch.http.AbstractHttpServerTransport
bindServer, boundAddress, doClose, doStop, incomingRequest, incomingRequestError, info, onServerException, serverAcceptedChannel, statsMethods 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, stop
-
Field Details
-
Constructor Details
-
Netty4HttpServerTransport
public Netty4HttpServerTransport(Settings settings, NetworkService networkService, BigArrays bigArrays, ThreadPool threadPool, NamedXContentRegistry xContentRegistry, HttpServerTransport.Dispatcher dispatcher, ClusterSettings clusterSettings)
-
-
Method Details
-
settings
-
doStart
protected void doStart()- Specified by:
doStartin classAbstractLifecycleComponent
-
bind
protected HttpServerChannel bind(java.net.InetSocketAddress socketAddress) throws java.lang.Exception- Specified by:
bindin classAbstractHttpServerTransport- Throws:
java.lang.Exception
-
stopInternal
protected void stopInternal()- Specified by:
stopInternalin classAbstractHttpServerTransport
-
onException
- Overrides:
onExceptionin classAbstractHttpServerTransport
-
configureServerChannelHandler
public io.netty.channel.ChannelHandler configureServerChannelHandler()
-