public class NettyHttpServerTransport extends AbstractLifecycleComponent<HttpServerTransport> implements HttpServerTransport
Modifier and Type | Class and Description |
---|---|
protected static class |
NettyHttpServerTransport.HttpChannelPipelineFactory |
lifecycle
deprecationLogger, logger, settings
Constructor and Description |
---|
NettyHttpServerTransport(Settings settings,
NetworkService networkService,
BigArrays bigArrays,
ThreadPool threadPool) |
Modifier and Type | Method and Description |
---|---|
BoundTransportAddress |
boundAddress() |
org.jboss.netty.channel.ChannelPipelineFactory |
configureServerChannelPipelineFactory() |
protected void |
dispatchRequest(HttpRequest request,
HttpChannel channel) |
protected void |
doClose() |
protected void |
doStart() |
protected void |
doStop() |
protected void |
exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ExceptionEvent e) |
CorsConfig |
getCorsConfig() |
void |
httpServerAdapter(HttpServerAdapter httpServerAdapter) |
HttpInfo |
info() |
Settings |
settings() |
HttpStats |
stats() |
addLifecycleListener, close, lifecycleState, removeLifecycleListener, start, stop
logDeprecatedSetting, logRemovedSetting, nodeName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addLifecycleListener, lifecycleState, removeLifecycleListener, start, stop
close
public static Setting<ByteSizeValue> SETTING_HTTP_NETTY_MAX_CUMULATION_BUFFER_CAPACITY
public static Setting<java.lang.Integer> SETTING_HTTP_NETTY_MAX_COMPOSITE_BUFFER_COMPONENTS
public static final Setting<java.lang.Integer> SETTING_HTTP_WORKER_COUNT
public static final Setting<java.lang.Boolean> SETTING_HTTP_TCP_NO_DELAY
public static final Setting<java.lang.Boolean> SETTING_HTTP_TCP_KEEP_ALIVE
public static final Setting<java.lang.Boolean> SETTING_HTTP_TCP_BLOCKING_SERVER
public static final Setting<java.lang.Boolean> SETTING_HTTP_TCP_REUSE_ADDRESS
public static final Setting<ByteSizeValue> SETTING_HTTP_TCP_SEND_BUFFER_SIZE
public static final Setting<ByteSizeValue> SETTING_HTTP_TCP_RECEIVE_BUFFER_SIZE
public static final Setting<ByteSizeValue> SETTING_HTTP_NETTY_RECEIVE_PREDICTOR_SIZE
public static final Setting<ByteSizeValue> SETTING_HTTP_NETTY_RECEIVE_PREDICTOR_MIN
public static final Setting<ByteSizeValue> SETTING_HTTP_NETTY_RECEIVE_PREDICTOR_MAX
protected final NetworkService networkService
protected final BigArrays bigArrays
protected final ByteSizeValue maxContentLength
protected final ByteSizeValue maxInitialLineLength
protected final ByteSizeValue maxHeaderSize
protected final ByteSizeValue maxChunkSize
protected final int workerCount
protected final boolean blockingServer
protected final boolean pipelining
protected final int pipeliningMaxEvents
protected final boolean compression
protected final int compressionLevel
protected final boolean resetCookies
protected final PortsRange port
protected final java.lang.String[] bindHosts
protected final java.lang.String[] publishHosts
protected final boolean detailedErrorsEnabled
protected final ThreadPool threadPool
protected final boolean tcpNoDelay
protected final boolean tcpKeepAlive
protected final boolean reuseAddress
protected final ByteSizeValue tcpSendBufferSize
protected final ByteSizeValue tcpReceiveBufferSize
protected final org.jboss.netty.channel.ReceiveBufferSizePredictorFactory receiveBufferSizePredictorFactory
protected final ByteSizeValue maxCumulationBufferCapacity
protected final int maxCompositeBufferComponents
protected volatile org.jboss.netty.bootstrap.ServerBootstrap serverBootstrap
protected volatile BoundTransportAddress boundAddress
protected volatile java.util.List<org.jboss.netty.channel.Channel> serverChannels
protected volatile HttpServerAdapter httpServerAdapter
@Inject public NettyHttpServerTransport(Settings settings, NetworkService networkService, BigArrays bigArrays, ThreadPool threadPool)
public Settings settings()
public void httpServerAdapter(HttpServerAdapter httpServerAdapter)
httpServerAdapter
in interface HttpServerTransport
protected void doStart()
doStart
in class AbstractLifecycleComponent<HttpServerTransport>
protected void doStop()
doStop
in class AbstractLifecycleComponent<HttpServerTransport>
protected void doClose()
doClose
in class AbstractLifecycleComponent<HttpServerTransport>
public BoundTransportAddress boundAddress()
boundAddress
in interface HttpServerTransport
public HttpInfo info()
info
in interface HttpServerTransport
public HttpStats stats()
stats
in interface HttpServerTransport
public CorsConfig getCorsConfig()
protected void dispatchRequest(HttpRequest request, HttpChannel channel)
protected void exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.ExceptionEvent e) throws java.lang.Exception
java.lang.Exception
public org.jboss.netty.channel.ChannelPipelineFactory configureServerChannelPipelineFactory()