use of org.jboss.netty.channel.ChannelPipeline in project pinpoint by naver.
the class ServerPipelineFactory method getPipeline.
@Override
public ChannelPipeline getPipeline() throws Exception {
ChannelPipeline pipeline = Channels.pipeline();
pipeline.addLast("decoder", new PacketDecoder());
pipeline.addLast("encoder", new PacketEncoder());
pipeline.addLast("handler", pinpointServerChannelHandler);
return pipeline;
}
use of org.jboss.netty.channel.ChannelPipeline in project pinpoint by naver.
the class PinpointClientPipelineFactory method getPipeline.
@Override
public ChannelPipeline getPipeline() throws Exception {
ChannelPipeline pipeline = Channels.pipeline();
pipeline.addLast("encoder", new PacketEncoder());
pipeline.addLast("decoder", new PacketDecoder());
long pingDelay = pinpointClientFactory.getPingDelay();
long enableWorkerPacketDelay = pinpointClientFactory.getEnableWorkerPacketDelay();
long timeoutMillis = pinpointClientFactory.getTimeoutMillis();
DefaultPinpointClientHandler defaultPinpointClientHandler = new DefaultPinpointClientHandler(pinpointClientFactory, pingDelay, enableWorkerPacketDelay, timeoutMillis);
pipeline.addLast("writeTimeout", new WriteTimeoutHandler(defaultPinpointClientHandler.getChannelTimer(), 3000, TimeUnit.MILLISECONDS));
pipeline.addLast("socketHandler", defaultPinpointClientHandler);
return pipeline;
}
use of org.jboss.netty.channel.ChannelPipeline in project neo4j by neo4j.
the class Server method getPipeline.
@Override
public ChannelPipeline getPipeline() throws Exception {
ChannelPipeline pipeline = Channels.pipeline();
pipeline.addLast("monitor", new MonitorChannelHandler(byteCounterMonitor));
addLengthFieldPipes(pipeline, frameLength);
pipeline.addLast("serverHandler", this);
return pipeline;
}
use of org.jboss.netty.channel.ChannelPipeline in project jstorm by alibaba.
the class StormClientPipelineFactory method getPipeline.
public ChannelPipeline getPipeline() throws Exception {
// Create a default pipeline implementation.
ChannelPipeline pipeline = Channels.pipeline();
// Decoder
pipeline.addLast("decoder", new MessageDecoder(false, conf));
// Encoder
pipeline.addLast("encoder", new MessageEncoder());
// business logic.
pipeline.addLast("handler", new StormClientHandler(client));
return pipeline;
}
use of org.jboss.netty.channel.ChannelPipeline in project jstorm by alibaba.
the class StormServerPipelineFactory method getPipeline.
public ChannelPipeline getPipeline() throws Exception {
// Create a default pipeline implementation.
ChannelPipeline pipeline = Channels.pipeline();
// Decoder
pipeline.addLast("decoder", new MessageDecoder(true, conf));
// Encoder
pipeline.addLast("encoder", new MessageEncoder());
// business logic.
pipeline.addLast("handler", new StormServerHandler(server));
return pipeline;
}
Aggregations