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,org.elasticsearch.common.component.LifecycleComponent,org.elasticsearch.common.lease.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 classNetty4HttpServerTransport.HttpChannelHandlerNested classes/interfaces inherited from interface org.elasticsearch.http.HttpServerTransport
org.elasticsearch.http.HttpServerTransport.DispatcherNested 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<java.lang.Integer>SETTING_HTTP_NETTY_MAX_COMPOSITE_BUFFER_COMPONENTSstatic org.elasticsearch.common.settings.Setting<org.elasticsearch.common.unit.ByteSizeValue>SETTING_HTTP_NETTY_RECEIVE_PREDICTOR_SIZEstatic org.elasticsearch.common.settings.Setting<java.lang.Integer>SETTING_HTTP_WORKER_COUNTFields inherited from class org.elasticsearch.http.AbstractHttpServerTransport
bigArrays, corsHandler, dispatcher, handlingSettings, maxContentLength, networkService, port, settings, threadPoolFields inherited from class org.elasticsearch.common.component.AbstractLifecycleComponent
lifecycleFields 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.HttpServerChannelbind(java.net.InetSocketAddress socketAddress)io.netty.channel.ChannelHandlerconfigureServerChannelHandler()protected voiddoStart()voidonException(org.elasticsearch.http.HttpChannel channel, java.lang.Exception cause)org.elasticsearch.common.settings.Settingssettings()protected voidstopInternal()Methods inherited from class org.elasticsearch.http.AbstractHttpServerTransport
bindServer, boundAddress, doClose, doStop, incomingRequest, 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, stopMethods inherited from interface org.elasticsearch.common.lease.Releasable
close
-
Field Details
-
SETTING_HTTP_NETTY_MAX_COMPOSITE_BUFFER_COMPONENTS
public static org.elasticsearch.common.settings.Setting<java.lang.Integer> SETTING_HTTP_NETTY_MAX_COMPOSITE_BUFFER_COMPONENTS -
SETTING_HTTP_WORKER_COUNT
public static final org.elasticsearch.common.settings.Setting<java.lang.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
-
Method Details
-
settings
public org.elasticsearch.common.settings.Settings settings() -
doStart
protected void doStart()- Specified by:
doStartin classorg.elasticsearch.common.component.AbstractLifecycleComponent
-
bind
protected org.elasticsearch.http.HttpServerChannel bind(java.net.InetSocketAddress socketAddress) throws java.lang.Exception- Specified by:
bindin classorg.elasticsearch.http.AbstractHttpServerTransport- Throws:
java.lang.Exception
-
stopInternal
protected void stopInternal()- Specified by:
stopInternalin classorg.elasticsearch.http.AbstractHttpServerTransport
-
onException
public void onException(org.elasticsearch.http.HttpChannel channel, java.lang.Exception cause)- Overrides:
onExceptionin classorg.elasticsearch.http.AbstractHttpServerTransport
-
configureServerChannelHandler
public io.netty.channel.ChannelHandler configureServerChannelHandler()
-