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,org.elasticsearch.common.component.LifecycleComponent,org.elasticsearch.core.Releasable,org.elasticsearch.http.HttpServerTransport,org.elasticsearch.node.ReportingService<org.elasticsearch.http.HttpInfo>
public class NioHttpServerTransport
extends org.elasticsearch.http.AbstractHttpServerTransport
-
Nested Class Summary
Nested 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 TypeFieldDescriptionprotected PageAllocatorprotected booleanprotected booleanprotected intprotected intprotected intprotected booleanprotected intprotected 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(org.elasticsearch.common.settings.Settings settings, org.elasticsearch.common.network.NetworkService networkService, org.elasticsearch.common.util.BigArrays bigArrays, org.elasticsearch.common.util.PageCacheRecycler pageCacheRecycler, org.elasticsearch.threadpool.ThreadPool threadPool, org.elasticsearch.common.xcontent.NamedXContentRegistry xContentRegistry, org.elasticsearch.http.HttpServerTransport.Dispatcher dispatcher, NioGroupFactory nioGroupFactory, org.elasticsearch.common.settings.ClusterSettings clusterSettings) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidacceptChannel(org.elasticsearch.nio.NioSocketChannel socketChannel)protected org.elasticsearch.http.HttpServerChannelbind(InetSocketAddress socketAddress)protected org.elasticsearch.nio.ChannelFactory<NioHttpServerChannel,NioHttpChannel>protected voiddoStart()org.apache.logging.log4j.Loggerprotected voidMethods inherited from class org.elasticsearch.http.AbstractHttpServerTransport
bindServer, boundAddress, doClose, doStop, incomingRequest, info, onException, 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
-
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(org.elasticsearch.common.settings.Settings settings, org.elasticsearch.common.network.NetworkService networkService, org.elasticsearch.common.util.BigArrays bigArrays, org.elasticsearch.common.util.PageCacheRecycler pageCacheRecycler, org.elasticsearch.threadpool.ThreadPool threadPool, org.elasticsearch.common.xcontent.NamedXContentRegistry xContentRegistry, org.elasticsearch.http.HttpServerTransport.Dispatcher dispatcher, NioGroupFactory nioGroupFactory, org.elasticsearch.common.settings.ClusterSettings clusterSettings)
-
-
Method Details
-
getLogger
public org.apache.logging.log4j.Logger getLogger() -
doStart
protected void doStart()- Specified by:
doStartin classorg.elasticsearch.common.component.AbstractLifecycleComponent
-
stopInternal
protected void stopInternal()- Specified by:
stopInternalin classorg.elasticsearch.http.AbstractHttpServerTransport
-
bind
protected org.elasticsearch.http.HttpServerChannel bind(InetSocketAddress socketAddress) throws IOException- Specified by:
bindin classorg.elasticsearch.http.AbstractHttpServerTransport- Throws:
IOException
-
channelFactory
protected org.elasticsearch.nio.ChannelFactory<NioHttpServerChannel,NioHttpChannel> channelFactory() -
acceptChannel
protected void acceptChannel(org.elasticsearch.nio.NioSocketChannel socketChannel)
-