commit | 72d0e587738ab6eb4c8113c39f9cf6043d5b600f | [log] [tgz] |
---|---|---|
author | Pier <pierluigi.ventre@cnit.it> | Fri Apr 20 14:14:34 2018 +0200 |
committer | Pier Luigi Ventre <pierluigi.ventre@cnit.it> | Mon Apr 23 09:10:01 2018 +0000 |
tree | 4cf14386d12e30234e945cb8d03580d2615dd413 | |
parent | 39b755249e8851fbf711406b6b192cfaa0893918 [diff] |
Improve Mcast termination Change-Id: I2855d28b374af821667e08bb3baec01f5cfd8100 (cherry picked from commit 173204690b035f1b9be36022c9dfd64f1f264123)
diff --git a/app/src/main/java/org/onosproject/segmentrouting/mcast/McastHandler.java b/app/src/main/java/org/onosproject/segmentrouting/mcast/McastHandler.java index 50d0969..3b659bd 100644 --- a/app/src/main/java/org/onosproject/segmentrouting/mcast/McastHandler.java +++ b/app/src/main/java/org/onosproject/segmentrouting/mcast/McastHandler.java
@@ -351,7 +351,12 @@ * Clean up when deactivating the application. */ public void terminate() { + mcastEventCache.invalidateAll(); executorService.shutdown(); + mcastNextObjStore.destroy(); + mcastRoleStore.destroy(); + mcastUtils.terminate(); + log.info("Terminated"); } /** @@ -372,7 +377,6 @@ } } - /** * Process the ROUTE_ADDED event. *
diff --git a/app/src/main/java/org/onosproject/segmentrouting/mcast/McastUtils.java b/app/src/main/java/org/onosproject/segmentrouting/mcast/McastUtils.java index fc89fde..2b13370 100644 --- a/app/src/main/java/org/onosproject/segmentrouting/mcast/McastUtils.java +++ b/app/src/main/java/org/onosproject/segmentrouting/mcast/McastUtils.java
@@ -93,6 +93,13 @@ } /** + * Clean up when deactivating the application. + */ + public void terminate() { + mcastLeaderCache.clear(); + } + + /** * Get router mac using application config and the connect point. * * @param deviceId the device id