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:
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 ClassesModifier and TypeClassDescriptionprotected static classNested 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
FieldsModifier and TypeFieldDescriptionstatic 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, 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
ConstructorsConstructorDescriptionNetty4HttpServerTransport(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 TypeMethodDescriptionprotected org.elasticsearch.http.HttpServerChannelbind(InetSocketAddress socketAddress)io.netty.channel.ChannelHandlerprotected voiddoStart()voidonException(org.elasticsearch.http.HttpChannel channel, Exception cause)org.elasticsearch.common.settings.Settingssettings()protected voidMethods 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.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
-
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(InetSocketAddress socketAddress) throws Exception- Specified by:
bindin classorg.elasticsearch.http.AbstractHttpServerTransport- Throws:
Exception
-
stopInternal
protected void stopInternal()- Specified by:
stopInternalin classorg.elasticsearch.http.AbstractHttpServerTransport
-
onException
- Overrides:
onExceptionin classorg.elasticsearch.http.AbstractHttpServerTransport
-
configureServerChannelHandler
public io.netty.channel.ChannelHandler configureServerChannelHandler()
-