@Override
 public void userEventTriggered(ChannelHandlerContext ctx, Object evt) throws Exception {
   log.debug(
       "channelIdle on OFChannelHandler {}", String.format("%08x", System.identityHashCode(this)));
   OFChannelHandler handler = ctx.pipeline().get(OFChannelHandler.class);
   handler.sendEchoRequest();
 }
Example #2
0
  @Override
  public void channelIdle(ChannelHandlerContext ctx, IdleStateEvent e) throws Exception {

    log.debug(
        "channelIdle on OFChannelHandler {}", String.format("%08x", System.identityHashCode(this)));
    OFChannelHandler handler = ctx.getPipeline().get(OFChannelHandler.class);
    handler.sendEchoRequest();
  }