BUG-7927: stop scanning bundles on framework stop 02/56302/1
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 27 Apr 2017 15:36:37 +0000 (17:36 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Sun, 30 Apr 2017 19:27:16 +0000 (21:27 +0200)
commiteff76fdd3d3ed3570aed964f8715312a01ef3a37
tree99710e7d208a08f21ea3ef6288431d808298a2fc
parent869a7497b9e7f6c765626848dbcc9a1f4db0a3d2
BUG-7927: stop scanning bundles on framework stop

Monitor framework bundle for STOPPING event and when it triggers
flag us as stopping: all bundles are about to shut down, so there
is no point in trying to update the schema context anymore.

Change-Id: I1a55169fce1705c19a139063cf632674fc256701
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 6a79e55d2b6462cd609ab8cd5766fd4222c18c4f)
opendaylight/md-sal/sal-schema-service/src/main/java/org/opendaylight/controller/sal/schema/service/impl/GlobalBundleScanningSchemaServiceImpl.java