X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fnetconf%2Fconfig-netconf-connector%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fnetconf%2Fconfignetconfconnector%2Fosgi%2FNetconfOperationServiceFactoryImpl.java;h=b5ae66d605ff6b1199eac5c7f7ec11298d63e0ed;hb=26b333ab642abbdda8ef0e3b570083b47af00255;hp=12469f66b7be00d2649f231f8e1471073eaa66bd;hpb=31b7a44c89d1057489338492fcf62a64147bea24;p=controller.git diff --git a/opendaylight/netconf/config-netconf-connector/src/main/java/org/opendaylight/controller/netconf/confignetconfconnector/osgi/NetconfOperationServiceFactoryImpl.java b/opendaylight/netconf/config-netconf-connector/src/main/java/org/opendaylight/controller/netconf/confignetconfconnector/osgi/NetconfOperationServiceFactoryImpl.java index 12469f66b7..b5ae66d605 100644 --- a/opendaylight/netconf/config-netconf-connector/src/main/java/org/opendaylight/controller/netconf/confignetconfconnector/osgi/NetconfOperationServiceFactoryImpl.java +++ b/opendaylight/netconf/config-netconf-connector/src/main/java/org/opendaylight/controller/netconf/confignetconfconnector/osgi/NetconfOperationServiceFactoryImpl.java @@ -8,14 +8,13 @@ package org.opendaylight.controller.netconf.confignetconfconnector.osgi; +import java.lang.management.ManagementFactory; +import javax.management.MBeanServer; import org.opendaylight.controller.config.util.ConfigRegistryJMXClient; import org.opendaylight.controller.netconf.mapping.api.NetconfOperationServiceFactory; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import javax.management.MBeanServer; -import java.lang.management.ManagementFactory; - public class NetconfOperationServiceFactoryImpl implements NetconfOperationServiceFactory { public static final int ATTEMPT_TIMEOUT_MS = 1000; @@ -24,7 +23,7 @@ public class NetconfOperationServiceFactoryImpl implements NetconfOperationServi private final YangStoreService yangStoreService; private final ConfigRegistryJMXClient jmxClient; - private static final Logger logger = LoggerFactory.getLogger(NetconfOperationServiceFactoryImpl.class); + private static final Logger LOG = LoggerFactory.getLogger(NetconfOperationServiceFactoryImpl.class); public NetconfOperationServiceFactoryImpl(YangStoreService yangStoreService) { this(yangStoreService, ManagementFactory.getPlatformMBeanServer()); @@ -44,9 +43,9 @@ public class NetconfOperationServiceFactoryImpl implements NetconfOperationServi } catch (IllegalStateException e) { ++i; if (i > SILENT_ATTEMPTS) { - logger.info("JMX client not created after {} attempts, still trying", i, e); + LOG.info("JMX client not created after {} attempts, still trying", i, e); } else { - logger.debug("JMX client could not be created, reattempting, try {}", i, e); + LOG.debug("JMX client could not be created, reattempting, try {}", i, e); } try { Thread.sleep(ATTEMPT_TIMEOUT_MS); @@ -59,9 +58,9 @@ public class NetconfOperationServiceFactoryImpl implements NetconfOperationServi jmxClient = configRegistryJMXClient; if (i > SILENT_ATTEMPTS) { - logger.info("Created JMX client after {} attempts", i); + LOG.info("Created JMX client after {} attempts", i); } else { - logger.debug("Created JMX client after {} attempts", i); + LOG.debug("Created JMX client after {} attempts", i); } }