From: Giovanni Meo Date: Wed, 22 Jan 2014 21:31:53 +0000 (+0000) Subject: Merge "Optimization - calculate the subnet prefix only once." X-Git-Tag: jenkins-controller-bulk-release-prepare-only-2-1~17 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=commitdiff_plain;h=83c0434896c039015c3973d8e9ac7bdbc0dcfe85;hp=795acce15158be694bbc8a580ff2feda4cf0b555 Merge "Optimization - calculate the subnet prefix only once." --- diff --git a/opendaylight/commons/opendaylight/pom.xml b/opendaylight/commons/opendaylight/pom.xml index 3eba5f0b3c..64c873b347 100644 --- a/opendaylight/commons/opendaylight/pom.xml +++ b/opendaylight/commons/opendaylight/pom.xml @@ -62,8 +62,8 @@ 2010.09.24.2-SNAPSHOT 2010.09.24.2-SNAPSHOT 2013.10.21.0-SNAPSHOT - 2013.08.27.1 - 2013.09.07.1 + 2013.08.27.2-SNAPSHOT + 2013.09.07.2-SNAPSHOT 3.17.1-GA 1.0-SNAPSHOT 2.3.2 diff --git a/opendaylight/logging/bridge/src/main/java/org/opendaylight/controller/logging/bridge/internal/Activator.java b/opendaylight/logging/bridge/src/main/java/org/opendaylight/controller/logging/bridge/internal/Activator.java index b231faf153..75990c7c51 100644 --- a/opendaylight/logging/bridge/src/main/java/org/opendaylight/controller/logging/bridge/internal/Activator.java +++ b/opendaylight/logging/bridge/src/main/java/org/opendaylight/controller/logging/bridge/internal/Activator.java @@ -50,14 +50,15 @@ public class Activator implements BundleActivator { if (reader == null) { this.log.error("Cannot register the LogListener because " + "cannot retrieve LogReaderService"); - } - reader.addLogListener(this.listener); - // Now lets walk all the exiting messages - Enumeration entries = reader.getLog(); - if (entries != null) { - while (entries.hasMoreElements()) { - LogEntry entry = (LogEntry) entries.nextElement(); - this.listener.logged(entry); + } else { + reader.addLogListener(this.listener); + // Now lets walk all the exiting messages + Enumeration entries = reader.getLog(); + if (entries != null) { + while (entries.hasMoreElements()) { + LogEntry entry = entries.nextElement(); + this.listener.logged(entry); + } } } @@ -98,10 +99,10 @@ public class Activator implements BundleActivator { @Override public void stop(BundleContext context) { - ServiceReference service = null; - service = context.getServiceReference(LogReaderService.class.getName()); - if (service != null) { - LogReaderService reader = (LogReaderService) service; + ServiceReference serviceRef = context.getServiceReference( + LogReaderService.class.getName()); + if (serviceRef != null) { + LogReaderService reader = (LogReaderService) context.getService(serviceRef); reader.removeLogListener(this.listener); } if (this.shutdownHandler != null) { diff --git a/opendaylight/md-sal/model/model-flow-base/pom.xml b/opendaylight/md-sal/model/model-flow-base/pom.xml index 5e69548d9a..ffa3194418 100644 --- a/opendaylight/md-sal/model/model-flow-base/pom.xml +++ b/opendaylight/md-sal/model/model-flow-base/pom.xml @@ -19,7 +19,7 @@ org.opendaylight.yangtools.model opendaylight-l2-types - 2013.08.27.1 + 2013.08.27.2-SNAPSHOT ${project.groupId} diff --git a/opendaylight/md-sal/model/model-flow-management/pom.xml b/opendaylight/md-sal/model/model-flow-management/pom.xml index db2c62d9af..fe7b9f29f9 100644 --- a/opendaylight/md-sal/model/model-flow-management/pom.xml +++ b/opendaylight/md-sal/model/model-flow-management/pom.xml @@ -29,7 +29,7 @@ org.opendaylight.yangtools.model opendaylight-l2-types - 2013.08.27.1 + 2013.08.27.2-SNAPSHOT bundle diff --git a/opendaylight/md-sal/model/model-flow-service/pom.xml b/opendaylight/md-sal/model/model-flow-service/pom.xml index c2e48b3df5..fac7cfae28 100644 --- a/opendaylight/md-sal/model/model-flow-service/pom.xml +++ b/opendaylight/md-sal/model/model-flow-service/pom.xml @@ -29,7 +29,7 @@ org.opendaylight.yangtools.model opendaylight-l2-types - 2013.08.27.1 + 2013.08.27.2-SNAPSHOT bundle diff --git a/opendaylight/md-sal/model/model-flow-statistics/pom.xml b/opendaylight/md-sal/model/model-flow-statistics/pom.xml index e95fe24f28..e357f7d76f 100644 --- a/opendaylight/md-sal/model/model-flow-statistics/pom.xml +++ b/opendaylight/md-sal/model/model-flow-statistics/pom.xml @@ -29,7 +29,7 @@ org.opendaylight.yangtools.model opendaylight-l2-types - 2013.08.27.1-SNAPSHOT + 2013.08.27.2-SNAPSHOT bundle diff --git a/opendaylight/md-sal/model/pom.xml b/opendaylight/md-sal/model/pom.xml index f7c137fb32..f803180e89 100644 --- a/opendaylight/md-sal/model/pom.xml +++ b/opendaylight/md-sal/model/pom.xml @@ -135,7 +135,7 @@ org.opendaylight.yangtools.model yang-ext - 2013.09.07.1-SNAPSHOT + 2013.09.07.2-SNAPSHOT diff --git a/opendaylight/md-sal/sal-remoterpc-connector/integrationtest/test-it/pom.xml b/opendaylight/md-sal/sal-remoterpc-connector/integrationtest/test-it/pom.xml index d748d69c83..96eda6eb37 100644 --- a/opendaylight/md-sal/sal-remoterpc-connector/integrationtest/test-it/pom.xml +++ b/opendaylight/md-sal/sal-remoterpc-connector/integrationtest/test-it/pom.xml @@ -329,12 +329,12 @@ org.opendaylight.yangtools.model yang-ext - 2013.09.07.1 + 2013.09.07.2-SNAPSHOT org.opendaylight.yangtools.model opendaylight-l2-types - 2013.08.27.1 + 2013.08.27.2-SNAPSHOT org.opendaylight.controller