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
public class Netty4HttpServerTransport extends AbstractHttpServerTransport
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classNetty4HttpServerTransport.HttpChannelHandler-
Nested classes/interfaces inherited from interface org.elasticsearch.http.HttpServerTransport
HttpServerTransport.Dispatcher
-
-
Field Summary
Fields Modifier and Type Field Description protected io.netty.bootstrap.ServerBootstrapserverBootstrapstatic 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_COUNT-
Fields inherited from class org.elasticsearch.http.AbstractHttpServerTransport
bigArrays, dispatcher, handlingSettings, 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(Settings settings, NetworkService networkService, BigArrays bigArrays, ThreadPool threadPool, NamedXContentRegistry xContentRegistry, HttpServerTransport.Dispatcher dispatcher)
-
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, 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.common.lease.Releasable
close
-
-
-
-
Field Detail
-
SETTING_HTTP_NETTY_MAX_COMPOSITE_BUFFER_COMPONENTS
public static Setting<java.lang.Integer> SETTING_HTTP_NETTY_MAX_COMPOSITE_BUFFER_COMPONENTS
-
SETTING_HTTP_WORKER_COUNT
public static final Setting<java.lang.Integer> SETTING_HTTP_WORKER_COUNT
-
SETTING_HTTP_NETTY_RECEIVE_PREDICTOR_SIZE
public static final Setting<ByteSizeValue> SETTING_HTTP_NETTY_RECEIVE_PREDICTOR_SIZE
-
serverBootstrap
protected volatile io.netty.bootstrap.ServerBootstrap serverBootstrap
-
-
Constructor Detail
-
Netty4HttpServerTransport
public Netty4HttpServerTransport(Settings settings, NetworkService networkService, BigArrays bigArrays, ThreadPool threadPool, NamedXContentRegistry xContentRegistry, HttpServerTransport.Dispatcher dispatcher)
-
-
Method Detail
-
settings
public Settings 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
public void onException(HttpChannel channel, java.lang.Exception cause)
- Overrides:
onExceptionin classAbstractHttpServerTransport
-
configureServerChannelHandler
public io.netty.channel.ChannelHandler configureServerChannelHandler()
-
-