@Override public void channelActive(ChannelHandlerContext ctx) throws Exception { if (State.ChannelSubscribed == state) { super.channelActive(ctx); } else { state = State.Active; } }
@Override public void channelActive(ChannelHandlerContext ctx) throws Exception { super.channelActive(ctx); LOGGER.info("channel active for ClientProxyHandler at :[{}]",ctx.channel()); }
@Override public void channelActive(ChannelHandlerContext ctx) throws Exception { // This method will be invoked only if this handler was added // before channelActive() event is fired. If a user adds this handler // after the channelActive() event, initialize() will be called by beforeAdd(). initialize(ctx); super.channelActive(ctx); }
@Override public void channelActive(ChannelHandlerContext ctx) throws Exception { logger.trace(format(ctx, "ACTIVE")); super.channelActive(ctx); }
@Override public void channelActive(ChannelHandlerContext ctx) throws Exception { // This method will be invoked only if this handler was added // before channelActive() event is fired. If a user adds this handler // after the channelActive() event, initialize() will be called by beforeAdd(). initialize(ctx); super.channelActive(ctx); }
@Override public void channelActive(ChannelHandlerContext ctx) throws Exception { // This method will be invoked only if this handler was added // before channelActive() event is fired. If a user adds this handler // after the channelActive() event, scheduleAfresh() will be called by beforeAdd(). scheduleAfresh(ctx); super.channelActive(ctx); }
@Override public void channelActive(ChannelHandlerContext ctx) throws Exception { Attribute<BytesMetrics> attr = ctx.channel().attr(ATTR_KEY_METRICS); attr.set(new BytesMetrics()); super.channelActive(ctx); }
@Override public void channelActive(ChannelHandlerContext ctx) throws Exception { ctx.read(); // Read till handshake is over, else handshake will never be done, without reading from channel. super.channelActive(ctx); }
@Override public void channelActive(ChannelHandlerContext ctx) throws Exception { // This method will be invoked only if this handler was added // before channelActive() event is fired. If a user adds this handler // after the channelActive() event, initialize() will be called by beforeAdd(). initialize(ctx); super.channelActive(ctx); }
@Override public void channelActive(ChannelHandlerContext ctx) throws Exception { // This method will be invoked only if this handler was added // before channelActive() event is fired. If a user adds this handler // after the channelActive() event, initialize() will be called by beforeAdd(). initialize(ctx); super.channelActive(ctx); }
@Override public void channelActive(ChannelHandlerContext ctx) throws Exception { initialize(ctx); super.channelActive(ctx); }
@Override public void channelActive(ChannelHandlerContext ctx) throws Exception { // This method will be invoked only if this handler was added // before channelActive() event is fired. If a user adds this handler // after the channelActive() event, initialize() will be called by beforeAdd(). initialize(ctx); super.channelActive(ctx); }
@Override public void channelActive(ChannelHandlerContext ctx) throws Exception { InetSocketAddress sa = (InetSocketAddress) ctx.channel().localAddress(); MetricsCollector.getCollector(sa.getPort()).getChannels().incrementAndGet(); super.channelActive(ctx); }
@Override public void channelActive(final ChannelHandlerContext ctx) throws Exception { super.channelActive(ctx); channel = ctx.channel(); if (httpClientIdleScanPeriod > 0) { task = new HttpIdleTimer(); java.util.concurrent.Future<?> future = scheduledThreadPool.scheduleAtFixedRate(task, httpClientIdleScanPeriod, httpClientIdleScanPeriod, TimeUnit.MILLISECONDS); task.setFuture(future); } }
@Override public void channelActive(ChannelHandlerContext ctx) throws Exception { super.channelActive(ctx); server.getChannelGroup().add(ctx.channel()); }
@Override public void channelActive(ChannelHandlerContext ctx) throws Exception { final String remoteAddress = RemotingHelper.parseChannelRemoteAddr(ctx.channel()); log.info("NETTY SERVER PIPELINE: channelActive, the channel[{}]", remoteAddress); super.channelActive(ctx); if (NettyRemotingServer.this.channelEventListener != null) { NettyRemotingServer.this.putNettyEvent(new NettyEvent(NettyEventType.CONNECT, remoteAddress, ctx.channel())); } }
@Override public void channelActive(ChannelHandlerContext ctx) throws Exception { infoLog("Connection channel active: {}", RemotingUtil.parseRemoteAddress(ctx.channel())); super.channelActive(ctx); }
@Override public void channelActive(ChannelHandlerContext ctx) throws Exception { com.github.ltsopensource.remoting.Channel channel = new NettyChannel(ctx); final String remoteAddress = RemotingHelper.parseChannelRemoteAddr(channel); LOGGER.info("SERVER: channelActive, the channel[{}]", remoteAddress); super.channelActive(ctx); if (channelEventListener != null) { putRemotingEvent(new RemotingEvent(RemotingEventType.CONNECT, remoteAddress, channel)); } }
@Override public void channelActive(ChannelHandlerContext ctx) throws Exception { com.github.ltsopensource.remoting.Channel channel = new NettyChannel(ctx); final String remoteAddress = RemotingHelper.parseChannelRemoteAddr(channel); LOGGER.info("SERVER: channelActive, the channel[{}]", remoteAddress); super.channelActive(ctx); if (channelEventListener != null) { putRemotingEvent(new RemotingEvent(RemotingEventType.CONNECT, remoteAddress, channel)); } }
@Override public void channelActive(ChannelHandlerContext ctx) throws Exception { clientResources.eventBus().publish(new ConnectedEvent(local(ctx), remote(ctx))); super.channelActive(ctx); }