X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fconfig%2Fconfig-persister-feature-adapter%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fconfigpusherfeature%2Finternal%2FConfigPushingRunnable.java;h=1a40bb34d7b6fe1a8c296654dd1d6a448ae30421;hb=0d4e45b3a4b82f9f40ee09852e47b6a2f83b008c;hp=06c5c920f4ebb4da149e591c14d3c944cd4ccd5b;hpb=b725fdb758008195a98f7fad0fd3804c363170aa;p=controller.git diff --git a/opendaylight/config/config-persister-feature-adapter/src/main/java/org/opendaylight/controller/configpusherfeature/internal/ConfigPushingRunnable.java b/opendaylight/config/config-persister-feature-adapter/src/main/java/org/opendaylight/controller/configpusherfeature/internal/ConfigPushingRunnable.java index 06c5c920f4..1a40bb34d7 100644 --- a/opendaylight/config/config-persister-feature-adapter/src/main/java/org/opendaylight/controller/configpusherfeature/internal/ConfigPushingRunnable.java +++ b/opendaylight/config/config-persister-feature-adapter/src/main/java/org/opendaylight/controller/configpusherfeature/internal/ConfigPushingRunnable.java @@ -23,7 +23,7 @@ import org.slf4j.LoggerFactory; import com.google.common.collect.LinkedHashMultimap; public class ConfigPushingRunnable implements Runnable { - private static final Logger logger = LoggerFactory.getLogger(ConfigPushingRunnable.class); + private static final Logger LOGGER = LoggerFactory.getLogger(ConfigPushingRunnable.class); private static final int POLL_TIME = 1; private BlockingQueue queue; private FeatureConfigPusher configPusher; @@ -40,23 +40,23 @@ public class ConfigPushingRunnable implements Runnable { while(true) { try { if(!interuppted) { - if(toInstall.isEmpty()) { - event = queue.take(); - } else { - event = queue.poll(POLL_TIME, TimeUnit.MILLISECONDS); - } - if(event != null && event.getFeature() !=null) { - processFeatureEvent(event,toInstall); - } + if(toInstall.isEmpty()) { + event = queue.take(); + } else { + event = queue.poll(POLL_TIME, TimeUnit.MILLISECONDS); + } + if(event != null && event.getFeature() !=null) { + processFeatureEvent(event,toInstall); + } } else if(toInstall.isEmpty()) { - logger.error("ConfigPushingRunnable - exiting"); + LOGGER.error("ConfigPushingRunnable - exiting"); return; } } catch (InterruptedException e) { - logger.error("ConfigPushingRunnable - interupted"); + LOGGER.error("ConfigPushingRunnable - interupted"); interuppted = true; } catch (Exception e) { - logger.error("Exception while processing features {}", e); + LOGGER.error("Exception while processing features {}", e); } } } @@ -73,7 +73,7 @@ public class ConfigPushingRunnable implements Runnable { protected void logPushResult(LinkedHashMultimap results) { for(Feature f:results.keySet()) { - logger.info("Pushed configs for feature {} {}",f,results.get(f)); + LOGGER.info("Pushed configs for feature {} {}",f,results.get(f)); } } }