Search in sources :

Example 6 with HttpContentCompressor

use of org.jboss.netty.handler.codec.http.HttpContentCompressor 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)

Example 7 with HttpContentCompressor

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

the class CoordinatorAdminPipelineFactory method getPipeline.

@Override
public ChannelPipeline getPipeline() throws Exception {
    ChannelPipeline pipeline = pipeline();
    pipeline.addLast("decoder", new HttpRequestDecoder());
    pipeline.addLast("aggregator", new HttpChunkAggregator(MAX_AGGREGATE_SIZE));
    pipeline.addLast("encoder", new HttpResponseEncoder());
    pipeline.addLast("deflater", new HttpContentCompressor());
    pipeline.addLast("handler", new CoordinatorAdminRequestHandler(storeClientConfigs));
    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

ChannelPipeline (org.jboss.netty.channel.ChannelPipeline)7 HttpContentCompressor (org.jboss.netty.handler.codec.http.HttpContentCompressor)7 HttpRequestDecoder (org.jboss.netty.handler.codec.http.HttpRequestDecoder)7 HttpResponseEncoder (org.jboss.netty.handler.codec.http.HttpResponseEncoder)7 HttpChunkAggregator (org.jboss.netty.handler.codec.http.HttpChunkAggregator)6 SslHandler (org.jboss.netty.handler.ssl.SslHandler)2 ThreadFactoryBuilder (com.google.common.util.concurrent.ThreadFactoryBuilder)1 ExtendedReadTimeoutHandler (com.linkedin.databus2.core.container.ExtendedReadTimeoutHandler)1 ExtendedWriteTimeoutHandler (com.linkedin.databus2.core.container.ExtendedWriteTimeoutHandler)1 HttpRequestLoggingHandler (com.linkedin.databus2.core.container.HttpRequestLoggingHandler)1 ConnectionChannelRegistrationHandler (com.linkedin.databus2.core.container.netty.ConnectionChannelRegistrationHandler)1 DatabusRequestExecutionHandler (com.linkedin.databus2.core.container.netty.DatabusRequestExecutionHandler)1 HttpRequestHandler (com.linkedin.databus2.core.container.netty.HttpRequestHandler)1 OutboundContainerStatisticsCollectingHandler (com.linkedin.databus2.core.container.netty.OutboundContainerStatisticsCollectingHandler)1 InetSocketAddress (java.net.InetSocketAddress)1 Executor (java.util.concurrent.Executor)1 ChannelHandlerFactory (org.apache.camel.component.netty.ChannelHandlerFactory)1 ServerBootstrap (org.jboss.netty.bootstrap.ServerBootstrap)1 Channel (org.jboss.netty.channel.Channel)1 ChannelFactory (org.jboss.netty.channel.ChannelFactory)1