X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fnetconf%2Fnetconf-ssh%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fnetconf%2Fnetty%2FEchoClientHandler.java;fp=opendaylight%2Fnetconf%2Fnetconf-ssh%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fnetconf%2Fnetty%2FEchoClientHandler.java;h=1d3cd5325cb99f77c40a270f8963abd2ed2e3a12;hp=2a5791710a34cd7869ca4250cab4717c33b32f05;hb=462f9ceb7da71750eead2a15f47e6229980954ad;hpb=d5fcdd3416922d61f0bdebbe57e351456e3a3750 diff --git a/opendaylight/netconf/netconf-ssh/src/test/java/org/opendaylight/controller/netconf/netty/EchoClientHandler.java b/opendaylight/netconf/netconf-ssh/src/test/java/org/opendaylight/controller/netconf/netty/EchoClientHandler.java index 2a5791710a..1d3cd5325c 100644 --- a/opendaylight/netconf/netconf-ssh/src/test/java/org/opendaylight/controller/netconf/netty/EchoClientHandler.java +++ b/opendaylight/netconf/netconf-ssh/src/test/java/org/opendaylight/controller/netconf/netty/EchoClientHandler.java @@ -26,7 +26,7 @@ import org.slf4j.LoggerFactory; * the server. */ public class EchoClientHandler extends ChannelInboundHandlerAdapter implements ChannelFutureListener { - private static final Logger logger = LoggerFactory.getLogger(EchoClientHandler.class); + private static final Logger LOG = LoggerFactory.getLogger(EchoClientHandler.class); private ChannelHandlerContext ctx; private final StringBuilder fromServer = new StringBuilder(); @@ -39,7 +39,7 @@ public class EchoClientHandler extends ChannelInboundHandlerAdapter implements C @Override public synchronized void channelActive(ChannelHandlerContext ctx) { checkState(this.ctx == null); - logger.info("channelActive"); + LOG.info("channelActive"); this.ctx = ctx; state = State.CONNECTED; } @@ -54,14 +54,14 @@ public class EchoClientHandler extends ChannelInboundHandlerAdapter implements C ByteBuf bb = (ByteBuf) msg; String string = bb.toString(Charsets.UTF_8); fromServer.append(string); - logger.info(">{}", string); + LOG.info(">{}", string); bb.release(); } @Override public synchronized void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) { // Close the connection when an exception is raised. - logger.warn("Unexpected exception from downstream.", cause); + LOG.warn("Unexpected exception from downstream.", cause); checkState(this.ctx.equals(ctx)); ctx.close(); this.ctx = null; @@ -84,7 +84,7 @@ public class EchoClientHandler extends ChannelInboundHandlerAdapter implements C public synchronized void operationComplete(ChannelFuture future) throws Exception { checkState(state == State.CONNECTING); if (future.isSuccess()) { - logger.trace("Successfully connected, state will be switched in channelActive"); + LOG.trace("Successfully connected, state will be switched in channelActive"); } else { state = State.FAILED_TO_CONNECT; }