Search in sources :

Example 11 with HttpChunkAggregator

use of org.jboss.netty.handler.codec.http.HttpChunkAggregator in project voldemort by voldemort.

the class CoordinatorPipelineFactory method getPipeline.

@Override
public ChannelPipeline getPipeline() throws Exception {
    // Create a default pipeline implementation.
    ChannelPipeline pipeline = pipeline();
    pipeline.addLast("connectionStats", connectionStatsHandler);
    pipeline.addLast("decoder", new HttpRequestDecoder(this.coordinatorConfig.getHttpMessageDecoderMaxInitialLength(), this.coordinatorConfig.getHttpMessageDecoderMaxHeaderSize(), this.coordinatorConfig.getHttpMessageDecoderMaxChunkSize()));
    pipeline.addLast("aggregator", new HttpChunkAggregator(1048576));
    pipeline.addLast("encoder", new HttpResponseEncoder());
    pipeline.addLast("deflater", new HttpContentCompressor());
    pipeline.addLast("handler", new RestCoordinatorRequestHandler(fatClientMap));
    pipeline.addLast("coordinatorExecutionHandler", coordinatorExecutionHandler);
    return pipeline;
}
Also used : HttpResponseEncoder(org.jboss.netty.handler.codec.http.HttpResponseEncoder) HttpRequestDecoder(org.jboss.netty.handler.codec.http.HttpRequestDecoder) HttpContentCompressor(org.jboss.netty.handler.codec.http.HttpContentCompressor) HttpChunkAggregator(org.jboss.netty.handler.codec.http.HttpChunkAggregator) ChannelPipeline(org.jboss.netty.channel.ChannelPipeline)

Aggregations

HttpChunkAggregator (org.jboss.netty.handler.codec.http.HttpChunkAggregator)11 HttpResponseEncoder (org.jboss.netty.handler.codec.http.HttpResponseEncoder)11 ChannelPipeline (org.jboss.netty.channel.ChannelPipeline)10 HttpRequestDecoder (org.jboss.netty.handler.codec.http.HttpRequestDecoder)10 HttpContentCompressor (org.jboss.netty.handler.codec.http.HttpContentCompressor)6 ChannelPipelineFactory (org.jboss.netty.channel.ChannelPipelineFactory)3 JmxReporter (com.codahale.metrics.JmxReporter)2 InetSocketAddress (java.net.InetSocketAddress)2 ServerBootstrap (org.jboss.netty.bootstrap.ServerBootstrap)2 ChannelHandler (org.jboss.netty.channel.ChannelHandler)2 NioServerSocketChannelFactory (org.jboss.netty.channel.socket.nio.NioServerSocketChannelFactory)2 HttpContentDecompressor (org.jboss.netty.handler.codec.http.HttpContentDecompressor)2 SslHandler (org.jboss.netty.handler.ssl.SslHandler)2 Logger (ch.qos.logback.classic.Logger)1 LoggerContext (ch.qos.logback.classic.LoggerContext)1 PatternLayoutEncoder (ch.qos.logback.classic.encoder.PatternLayoutEncoder)1 ILoggingEvent (ch.qos.logback.classic.spi.ILoggingEvent)1 ConsoleAppender (ch.qos.logback.core.ConsoleAppender)1 BroadcastSession (com.cgbystrom.sockjs.test.BroadcastSession)1 MetricRegistry (com.codahale.metrics.MetricRegistry)1