Add restart-dependents-on-update blueprint extension
authorTom Pantelis <tpanteli@brocade.com>
Sat, 19 Mar 2016 20:51:29 +0000 (16:51 -0400)
committerAnil Vishnoi <vishnoianil@gmail.com>
Thu, 7 Apr 2016 18:09:45 +0000 (18:09 +0000)
commit251c682ff0ba6b3e1406903f5a6d0f9fab640f52
tree139f613f18d9b078ab0db52995c3072b92125564
parent6873acef891d160e4196df92dd2f13b53f131e38
Add restart-dependents-on-update blueprint extension

Added an attribute extension to the <blueprint> element that adds a bean
processor that scans for any "property-placeholder" elements and reacts to
changes to the corresponding cfg file by restarting this blueprint
container and any dependent containers that consume OSGi services provided by
this container in an atomic and orderly manner. This mimics the module
restart functionality provided by the CSS.

A new OSGi service, BlueprintContainerRestartService, was added that
performs the orderly restart. This service is created and registered by
the BlueprintBundleTracker.

Change-Id: I5f463303c3a8aba35b3ed914268bdc67ac795a5a
Signed-off-by: Tom Pantelis <tpanteli@brocade.com>
src/main/java/org/opendaylight/controller/blueprint/BlueprintBundleTracker.java
src/main/java/org/opendaylight/controller/blueprint/BlueprintContainerRestartService.java [new file with mode: 0644]
src/main/java/org/opendaylight/controller/blueprint/BlueprintContainerRestartServiceImpl.java [new file with mode: 0644]
src/main/java/org/opendaylight/controller/blueprint/ext/ComponentProcessor.java [new file with mode: 0644]
src/main/java/org/opendaylight/controller/blueprint/ext/OpendaylightNamespaceHandler.java [new file with mode: 0644]
src/main/resources/opendaylight-blueprint-ext-1.0.0.xsd [new file with mode: 0644]