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:
java.io.Closeable,java.lang.AutoCloseable,LifecycleComponent,Releasable,HttpServerTransport
public class NioHttpServerTransport extends AbstractHttpServerTransport
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.http.HttpServerTransport
HttpServerTransport.Dispatcher -
Field Summary
Fields Modifier and Type Field Description protected PageAllocatorpageAllocatorprotected booleanreuseAddressprotected booleantcpKeepAliveprotected inttcpKeepCountprotected inttcpKeepIdleprotected inttcpKeepIntervalprotected booleantcpNoDelayprotected inttcpReceiveBufferSizeprotected inttcpSendBufferSizeFields inherited from class org.elasticsearch.http.AbstractHttpServerTransport
bigArrays, corsConfig, dispatcher, handlingSettings, maxContentLength, networkService, port, settings, threadPoolFields inherited from interface org.elasticsearch.http.HttpServerTransport
HTTP_SERVER_WORKER_THREAD_NAME_PREFIX -
Constructor Summary
Constructors Constructor Description NioHttpServerTransport(Settings settings, NetworkService networkService, BigArrays bigArrays, PageCacheRecycler pageCacheRecycler, ThreadPool threadPool, NamedXContentRegistry xContentRegistry, HttpServerTransport.Dispatcher dispatcher, NioGroupFactory nioGroupFactory) -
Method Summary
Modifier and Type Method Description protected voidacceptChannel(NioSocketChannel socketChannel)protected HttpServerChannelbind(java.net.InetSocketAddress socketAddress)protected ChannelFactory<NioHttpServerChannel,NioHttpChannel>channelFactory()protected voiddoStart()org.apache.logging.log4j.LoggergetLogger()protected voidstopInternal()Methods inherited from class org.elasticsearch.http.AbstractHttpServerTransport
bindServer, boundAddress, doClose, doStop, incomingRequest, incomingRequestError, 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, stop
-
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, NamedXContentRegistry xContentRegistry, HttpServerTransport.Dispatcher dispatcher, NioGroupFactory nioGroupFactory)
-
-
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
protected HttpServerChannel bind(java.net.InetSocketAddress socketAddress) throws java.io.IOException- Specified by:
bindin classAbstractHttpServerTransport- Throws:
java.io.IOException
-
channelFactory
-
acceptChannel
-