@Test(expected = Exception.class) public void testChannelConnected() throws Exception { channelHandlerContext = EasyMock.createMock(ChannelHandlerContext.class); channelStateEvent = EasyMock.createMock(ChannelStateEvent.class); ospfInterfaceChannelHandler.channelConnected(channelHandlerContext, channelStateEvent); }
@Override public void channelConnected(ChannelHandlerContext ctx, ChannelStateEvent evt) throws Exception { log.info("OSPF channelConnected from {}", evt.getChannel().getRemoteAddress()); this.channel = evt.getChannel(); initialize(); }
OspfInterfaceChannelHandler extends IdleStateAwareChannelHandler { @Override public void channelConnected(ChannelHandlerContext ctx, ChannelStateEvent evt) throws Exception { log.info("OSPF channelConnected from {}", evt.getChannel().getRemoteAddress()); this.channel = evt.getChannel(); initialize(); } }
OspfInterfaceChannelHandler extends IdleStateAwareChannelHandler { @Override public void channelConnected(ChannelHandlerContext ctx, ChannelStateEvent evt) throws Exception { log.info("OSPF channelConnected from {}", evt.getChannel().getRemoteAddress()); this.channel = evt.getChannel(); initialize(); } OspfInterfaceChannelHandler(Controller controller, List<OspfProcess> processes); }
OspfInterfaceChannelHandler extends IdleStateAwareChannelHandler { @Override public void channelConnected(ChannelHandlerContext ctx, ChannelStateEvent evt) throws Exception { log.info("OSPF channelConnected from {}", evt.getChannel().getRemoteAddress()); this.channel = evt.getChannel(); initialize(); } OspfInterfaceChannelHandler(Controller controller, List<OspfProcess> processes); void initializeInterfaceMap(); void updateInterfaceMap(List<OspfProcess> ospfProcesses); @Override void channelConnected(ChannelHandlerContext ctx, ChannelStateEvent evt); @Override void channelDisconnected(ChannelHandlerContext ctx, ChannelStateEvent evt); @Override void exceptionCaught(ChannelHandlerContext ctx, ExceptionEvent
            e); @Override void messageReceived(ChannelHandlerContext ctx, MessageEvent
            e); void processOspfMessage(OspfMessage
                                           ospfMessage, ChannelHandlerContext ctx); void sentConfigPacket(byte[] configPacket); }
OspfInterfaceChannelHandler extends IdleStateAwareChannelHandler { @Override public void channelConnected(ChannelHandlerContext ctx, ChannelStateEvent evt) throws Exception { log.info("OSPF channelConnected from {}", evt.getChannel().getRemoteAddress()); this.channel = evt.getChannel(); initialize(); } OspfInterfaceChannelHandler(Controller controller, List<OspfProcess> processes); void initializeInterfaceMap(); void updateInterfaceMap(List<OspfProcess> ospfProcesses); @Override void channelConnected(ChannelHandlerContext ctx, ChannelStateEvent evt); @Override void channelDisconnected(ChannelHandlerContext ctx, ChannelStateEvent evt); @Override void exceptionCaught(ChannelHandlerContext ctx, ExceptionEvent
            e); @Override void messageReceived(ChannelHandlerContext ctx, MessageEvent
            e); void processOspfMessage(OspfMessage
                                           ospfMessage, ChannelHandlerContext ctx); void sentConfigPacket(byte[] configPacket);  }