From 1c4fcf40b4cd33454bb57bde1e82a3819cb6ccff Mon Sep 17 00:00:00 2001 From: Ritu Sood Date: Wed, 23 Aug 2017 07:52:20 -0700 Subject: Add VFC integration code This patch adds VFC Actor code and updates drool template for VFC. This is WIP patch. There are two opens for this patch that are still in discussion 1) AA&I fields in onset event 2) VFC URL, username and password Issue-ID: POLICY-57 Change-Id: Idc1d1fada295fa1c2e563ba37dd359f7b5c59f87 Signed-off-by: Ritu Sood --- .../controlloop/eventmanager/ControlLoopOperationManager.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'controlloop/common/eventmanager/src/main/java') diff --git a/controlloop/common/eventmanager/src/main/java/org/onap/policy/controlloop/eventmanager/ControlLoopOperationManager.java b/controlloop/common/eventmanager/src/main/java/org/onap/policy/controlloop/eventmanager/ControlLoopOperationManager.java index f552cc549..0df58be06 100644 --- a/controlloop/common/eventmanager/src/main/java/org/onap/policy/controlloop/eventmanager/ControlLoopOperationManager.java +++ b/controlloop/common/eventmanager/src/main/java/org/onap/policy/controlloop/eventmanager/ControlLoopOperationManager.java @@ -37,6 +37,7 @@ import org.onap.policy.controlloop.ControlLoopException; import org.onap.policy.controlloop.policy.Policy; import org.onap.policy.controlloop.policy.PolicyResult; import org.onap.policy.controlloop.actor.appc.APPCActorServiceProvider; +import org.onap.policy.controlloop.actor.vfc.VFCActorServiceProvider; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -132,7 +133,7 @@ public class ControlLoopOperationManager implements Serializable { break; case "SDNO": break; - case "SDNR": + case "VFC": break; default: throw new ControlLoopException("ControlLoopEventManager: policy has an unknown actor."); @@ -212,6 +213,11 @@ public class ControlLoopOperationManager implements Serializable { // System.out.println("We are not supporting MSO actor in the latest release."); return null; + case "VFC": + this.operationRequest = VFCActorServiceProvider.constructRequest((VirtualControlLoopEvent) onset, operation.operation, this.policy); + this.currentOperation = operation; + return operationRequest; + } return null; } -- cgit 1.2.3-korg