Fix blueprint event handling 36/70936/1
authorTom Pantelis <tompantelis@gmail.com>
Mon, 22 Jan 2018 22:15:22 +0000 (17:15 -0500)
committerEvan Zeller <evanrzeller@gmail.com>
Sat, 14 Apr 2018 00:19:54 +0000 (17:19 -0700)
commit1921fc8432ff179b9d71486d7b09d4af79c62d7e
tree12172e903d6bfb7c2610a0a828a321012fc24218
parentb69500a51978c3d3ef639345a1a97a58cc3f6bb8
Fix blueprint event handling

The BlueprintBundleTracker registers for blueprint events so it can
log when a bundle finished creating its container, successful or not,
and also has logic to restart the container on dependency failure.
However this was  broken due to changes in Aries. You now have to
register a specific BlueprintListener onstead of a general OGSI
EventHandler.

Also this affected the BlueprintContainerRestartServiceImpl as it
relies on blueprint events to now when all bundles have completed
restart.

Change-Id: Ibb121b3995147a56be7f606ed88e9c1f59e3cd4c
Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
(cherry picked from commit 0e0e2378d379e2fbc12d8f93ef41b3267e10f83a)
opendaylight/blueprint/src/main/java/org/opendaylight/controller/blueprint/BlueprintBundleTracker.java
opendaylight/blueprint/src/main/java/org/opendaylight/controller/blueprint/BlueprintContainerRestartServiceImpl.java