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;
}
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;
}
Aggregations