public HttpPipelineFactory(Configuration conf, Timer timer) throws Exception { SHUFFLE = getShuffle(conf); // TODO Setup SSL Shuffle // if (conf.getBoolean(MRConfig.SHUFFLE_SSL_ENABLED_KEY, // MRConfig.SHUFFLE_SSL_ENABLED_DEFAULT)) { // LOG.info("Encrypted shuffle is enabled."); // sslFactory = new SSLFactory(SSLFactory.Mode.SERVER, conf); // sslFactory.init(); // } this.idleStateHandler = new IdleStateHandler(timer, 0, connectionKeepAliveTimeOut, 0); }
IdleStateHandler idleStateHandler = new IdleStateHandler(NettyUtils.hashedWheelTimer, readTimeout, writeTimeout,
@Override public ChannelPipeline getPipeline() throws Exception { // Create a default pipeline implementation. ChannelPipeline pipeline = pipeline(); pipeline.addLast("idleStateCheck", new IdleStateHandler(timer, 0, 0, MAX_IDLE_SECONDS)); pipeline.addLast("idleCheckHandler", idleCheckHandler); pipeline.addLast("multiplexer", createProtcolMultiplexerDecoder()); return pipeline; }
public ChannelPipeline addHandlers(ChannelPipeline pipeline) { if (null == pipeline) return null; pipeline.addLast("framer",createLengthBasedFrameDecoder()); pipeline.addLast("idleStateCheck", new IdleStateHandler(timer, 0, 0, MAX_IDLE_SECONDS)); pipeline.addLast("idleCheckHandler", idleCheckHandler); pipeline.addLast("eventDecoder", eventDecoder); pipeline.addLast("loginHandler", loginHandler); pipeline.addLast("lengthFieldPrepender",lengthFieldPrepender); return pipeline; }
/** * Instantiates a new my pipeline factory. * * @param timer the timer * @param tcpWorker the tcp worker * @param idleTimeoutSec the idle timeout sec */ public MyPipelineFactory(Timer timer, TcpWorker tcpWorker, int idleTimeoutSec) { this.tcpWorker = tcpWorker; this.idleStateHandler = new IdleStateHandler(timer, 0, 0, idleTimeoutSec); this.myIdleHandler = new MyIdleHandler(tcpWorker); }
/** * Instantiates a new my pipeline factory. * * @param timer * the timer * @param udpWorker * the udp worker */ public UdpPipelineFactory(Timer timer, UdpWorker udpWorker) { this.udpWorker = udpWorker; this.idleStateHandler = new IdleStateHandler(timer, 0, 0, udpWorker.udpMeta.getUdpIdleTimeoutSec()); this.myIdleHandler = new MyIdleHandler(udpWorker); }
public HttpOutboundPipeline (Timer timer) { IDLE_STATE_HANDLER = new IdleStateHandler(timer, IDLE_TIMEOUT_READER, IDLE_TIMEOUT_WRITER, IDLE_TIMEOUT_BOTH); }
public PcepPipelineFactory(Controller controller) { super(); this.controller = controller; this.idleHandler = new IdleStateHandler(TIMER, DEFAULT_DEAD_TIME, DEFAULT_KEEP_ALIVE_TIME, 0); this.readTimeoutHandler = new ReadTimeoutHandler(TIMER, DEFAULT_WAIT_TIME); }
public HttpPipelineFactory(Configuration conf, Timer timer) throws Exception { SHUFFLE = getShuffle(conf); // TODO Setup SSL Shuffle // if (conf.getBoolean(MRConfig.SHUFFLE_SSL_ENABLED_KEY, // MRConfig.SHUFFLE_SSL_ENABLED_DEFAULT)) { // LOG.info("Encrypted shuffle is enabled."); // sslFactory = new SSLFactory(SSLFactory.Mode.SERVER, conf); // sslFactory.init(); // } this.idleStateHandler = new IdleStateHandler(timer, 0, connectionKeepAliveTimeOut, 0); }
/** * Instantiates a new my pipeline factory. * * @param timer the timer * @param tcpWorker the tcp worker * @param idleTimeoutSec the idle timeout sec */ public MyPipelineFactory(Timer timer, TcpWorker tcpWorker, int idleTimeoutSec) { this.tcpWorker = tcpWorker; this.idleStateHandler = new IdleStateHandler(timer, 0, 0, idleTimeoutSec); this.myIdleHandler = new MyIdleHandler(tcpWorker); }
public PcepPipelineFactory(Controller controller) { super(); this.controller = controller; this.idleHandler = new IdleStateHandler(TIMER, DEFAULT_DEAD_TIME, DEFAULT_KEEP_ALIVE_TIME, 0); this.readTimeoutHandler = new ReadTimeoutHandler(TIMER, DEFAULT_WAIT_TIME); }
RegionClientPipeline() { timeout_handler = new IdleStateHandler(timer, 0, 0, config.getInt("hbase.hbase.ipc.client.connection.idle_timeout")); }
public CommonHttpPipeline(Timer timer) { this.idleStateHandler = new IdleStateHandler(timer, IDLE_TIMEOUT_READER, IDLE_TIMEOUT_WRITER, IDLE_TIMEOUT_BOTH); this.outboundConnectionPool = new CommonsConnectionPool(timer, OUTBOUND_CHANNEL_FACTORY); }
public OpenflowPipelineFactory(Controller controller, ThreadPoolExecutor pipelineExecutor, SSLContext sslContext) { super(); this.controller = controller; this.pipelineExecutor = pipelineExecutor; this.timer = new HashedWheelTimer(); this.idleHandler = new IdleStateHandler(timer, 20, 25, 0); this.readTimeoutHandler = new ReadTimeoutHandler(timer, 30); this.sslContext = sslContext; }
public HttpPipelineFactory(Configuration conf, Timer timer) throws Exception { SHUFFLE = getShuffle(conf); if (conf.getBoolean(MRConfig.SHUFFLE_SSL_ENABLED_KEY, MRConfig.SHUFFLE_SSL_ENABLED_DEFAULT)) { LOG.info("Encrypted shuffle is enabled."); sslFactory = new SSLFactory(SSLFactory.Mode.SERVER, conf); sslFactory.init(); } this.idleStateHandler = new IdleStateHandler(timer, 0, connectionKeepAliveTimeOut, 0); }
/** * Instantiates a new my pipeline factory. * * @param timer * the timer * @param udpWorker * the udp worker */ public UdpPipelineFactory(Timer timer, UdpWorker udpWorker) { this.udpWorker = udpWorker; this.idleStateHandler = new IdleStateHandler(timer, 0, 0, udpWorker.udpMeta.getUdpIdleTimeoutSec()); this.myIdleHandler = new MyIdleHandler(udpWorker); }
public ClientChannelPipeline( final OpenVirteXController openVirteXController, final ChannelGroup cg, final ThreadPoolExecutor pipelineExecutor, final ClientBootstrap bootstrap, final OVXSwitch sw) { super(); this.ctrl = openVirteXController; this.pipelineExecutor = pipelineExecutor; this.timer = PhysicalNetwork.getTimer(); this.idleHandler = new IdleStateHandler(this.timer, 20, 25, 0); this.readTimeoutHandler = new ReadTimeoutHandler(this.timer, 30); this.bootstrap = bootstrap; this.sw = sw; this.cg = cg; }
public SwitchChannelPipeline( final OpenVirteXController openVirteXController, final ThreadPoolExecutor pipelineExecutor) { super(); this.ctrl = openVirteXController; this.pipelineExecutor = pipelineExecutor; this.timer = PhysicalNetwork.getTimer(); this.idleHandler = new IdleStateHandler(this.timer, 20, 25, 0); this.readTimeoutHandler = new ReadTimeoutHandler(this.timer, 30); this.eh = new ExecutionHandler(this.pipelineExecutor); }
@Override public ChannelPipeline getPipeline() { return Channels.pipeline(new RpcFrameDecoder(), new IdleStateHandler(timer, 0, 1, 0, TimeUnit.MICROSECONDS), new RpcClientHandler(client, bootstrap, timer)); } };
@Override public ChannelPipeline getPipeline() throws Exception { ChannelPipeline pipeline = Channels.pipeline(); pipeline.addLast(SMTP_IDLE_HANDLER_KEY, SMTP_CLIENT_IDLE_HANDLER); pipeline.addLast(FRAMER_KEY, new LineBasedFrameDecoder(8192)); pipeline.addLast(SMTP_RESPONSE_DECODER_KEY, SMTP_RESPONSE_DECODER); pipeline.addLast(SMTP_REQUEST_ENCODER_KEY, SMTP_REQUEST_ENCODER); pipeline.addLast(SMTP_PIPELINING_REQUEST_ENCODER_KEY, SMTP_PIPELINING_REQUEST_ENCODER); pipeline.addLast(CHUNK_WRITE_HANDLER_KEY, new ChunkedWriteHandler()); pipeline.addLast(DISCONNECT_HANDLER_KEY, new SMTPDisconnectHandler(future)); // Add the idle timeout handler pipeline.addLast(IDLE_HANDLER_KEY, new IdleStateHandler(timer, 0, 0, config.getResponseTimeout())); pipeline.addLast(CONNECT_HANDLER_KEY, createConnectHandler()); return pipeline; }