Package org.elasticsearch.http.nio
Class NioHttpServerTransport
java.lang.Object
org.elasticsearch.common.component.AbstractLifecycleComponent
org.elasticsearch.http.AbstractHttpServerTransport
org.elasticsearch.http.nio.NioHttpServerTransport
- All Implemented Interfaces:
Closeable,AutoCloseable,LifecycleComponent,org.elasticsearch.core.Releasable,HttpServerTransport,ReportingService<HttpInfo>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.http.HttpServerTransport
HttpServerTransport.DispatcherNested classes/interfaces inherited from interface org.elasticsearch.node.ReportingService
ReportingService.Info -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final PageAllocatorprotected final booleanprotected final booleanprotected final intprotected final intprotected final intprotected final booleanprotected final intprotected final intFields 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
ConstructorsConstructorDescriptionNioHttpServerTransport(Settings settings, NetworkService networkService, BigArrays bigArrays, PageCacheRecycler pageCacheRecycler, ThreadPool threadPool, org.elasticsearch.xcontent.NamedXContentRegistry xContentRegistry, HttpServerTransport.Dispatcher dispatcher, NioGroupFactory nioGroupFactory, ClusterSettings clusterSettings) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidacceptChannel(NioSocketChannel socketChannel) protected HttpServerChannelbind(InetSocketAddress socketAddress) protected ChannelFactory<NioHttpServerChannel,NioHttpChannel> protected voiddoStart()org.apache.logging.log4j.Loggerprotected voidMethods inherited from class org.elasticsearch.http.AbstractHttpServerTransport
bindServer, boundAddress, doClose, doStop, getThreadPool, incomingRequest, info, onException, onServerException, populatePerRequestThreadContext, 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
-
pageAllocator
-
tcpNoDelay
protected final boolean tcpNoDelay -
tcpKeepAlive
protected final boolean tcpKeepAlive -
tcpKeepIdle
protected final int tcpKeepIdle -
tcpKeepInterval
protected final int tcpKeepInterval -
tcpKeepCount
protected final int tcpKeepCount -
reuseAddress
protected final boolean reuseAddress -
tcpSendBufferSize
protected final int tcpSendBufferSize -
tcpReceiveBufferSize
protected final int tcpReceiveBufferSize
-
-
Constructor Details
-
NioHttpServerTransport
public NioHttpServerTransport(Settings settings, NetworkService networkService, BigArrays bigArrays, PageCacheRecycler pageCacheRecycler, ThreadPool threadPool, org.elasticsearch.xcontent.NamedXContentRegistry xContentRegistry, HttpServerTransport.Dispatcher dispatcher, NioGroupFactory nioGroupFactory, ClusterSettings clusterSettings)
-
-
Method Details
-
getLogger
public org.apache.logging.log4j.Logger getLogger() -
doStart
protected void doStart()- Specified by:
doStartin classAbstractLifecycleComponent
-
stopInternal
protected void stopInternal()- Specified by:
stopInternalin classAbstractHttpServerTransport
-
bind
- Specified by:
bindin classAbstractHttpServerTransport- Throws:
IOException
-
channelFactory
-
acceptChannel
-