From bb8821635720574be3c4c7146657fc8082c7d54b Mon Sep 17 00:00:00 2001 From: Jim Hahn Date: Thu, 5 Jul 2018 14:24:36 -0400 Subject: Clean up objects for deleted rules When rules for a closed loop are deleted, associated working memory elements may be left around. Modified the code to retract the various elements. Re-added code to unlock when retracting TargetLock. Add junit tests for new methods. Forgot the junit test for request id. Change-Id: Iec2805adbdb147a643f6163badee05ea353ada88 Issue-ID: POLICY-872 Signed-off-by: Jim Hahn --- .../policy/controlloop/eventmanager/ControlLoopEventManager.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'controlloop/common/eventmanager/src/main') diff --git a/controlloop/common/eventmanager/src/main/java/org/onap/policy/controlloop/eventmanager/ControlLoopEventManager.java b/controlloop/common/eventmanager/src/main/java/org/onap/policy/controlloop/eventmanager/ControlLoopEventManager.java index 4817bec40..fa608ca08 100644 --- a/controlloop/common/eventmanager/src/main/java/org/onap/policy/controlloop/eventmanager/ControlLoopEventManager.java +++ b/controlloop/common/eventmanager/src/main/java/org/onap/policy/controlloop/eventmanager/ControlLoopEventManager.java @@ -101,6 +101,10 @@ public class ControlLoopEventManager implements LockCallback, Serializable { this.requestID = requestID; } + public String getClosedLoopControlName() { + return closedLoopControlName; + } + public String getControlLoopResult() { return controlLoopResult; } @@ -145,6 +149,10 @@ public class ControlLoopEventManager implements LockCallback, Serializable { return this.processor; } + public UUID getRequestID() { + return requestID; + } + /** * Activate a control loop event. * -- cgit 1.2.3-korg