From dbecba3a4baffacf9f2da82592b3e3a9e2929f21 Mon Sep 17 00:00:00 2001 From: Saravanan A Date: Mon, 10 Sep 2018 17:31:33 +0530 Subject: Add implementation for OOF PCI use case Receive DMaaP message from PCI-Handler MS with PCI Config change recommendations through DCAE_CL_OUTPUT topic. Trigger SDN-R (if allowed by policy) by sending DMaaP request through SDNR-CL topic. When the response is received from SDNR through SDNR-CL-RSP topic, just parse and print. Code review comments addressed Change-Id: If340a23ae18367b7f98e31fe79c09a09e645b2ad Issue-ID: POLICY-1089 Signed-off-by: Saravanan A --- .../org/onap/policy/controlloop/ControlLoopEvent.java | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'controlloop/common/model-impl/events') diff --git a/controlloop/common/model-impl/events/src/main/java/org/onap/policy/controlloop/ControlLoopEvent.java b/controlloop/common/model-impl/events/src/main/java/org/onap/policy/controlloop/ControlLoopEvent.java index eab04e22e..2753ececc 100644 --- a/controlloop/common/model-impl/events/src/main/java/org/onap/policy/controlloop/ControlLoopEvent.java +++ b/controlloop/common/model-impl/events/src/main/java/org/onap/policy/controlloop/ControlLoopEvent.java @@ -20,11 +20,11 @@ package org.onap.policy.controlloop; -import com.google.gson.annotations.SerializedName; - import java.io.Serializable; import java.util.UUID; +import com.google.gson.annotations.SerializedName; + public abstract class ControlLoopEvent implements Serializable { private static final long serialVersionUID = 2391252138583119195L; @@ -62,6 +62,9 @@ public abstract class ControlLoopEvent implements Serializable { @SerializedName("closedLoopEventStatus") private ControlLoopEventStatus closedLoopEventStatus; + @SerializedName("payload") + private String payload; + public ControlLoopEvent() { } @@ -85,6 +88,7 @@ public abstract class ControlLoopEvent implements Serializable { this.policyName = event.policyName; this.policyVersion = event.policyVersion; this.closedLoopEventStatus = event.closedLoopEventStatus; + this.payload = event.payload; } public boolean isEventStatusValid() { @@ -178,4 +182,12 @@ public abstract class ControlLoopEvent implements Serializable { public void setClosedLoopEventStatus(ControlLoopEventStatus closedLoopEventStatus) { this.closedLoopEventStatus = closedLoopEventStatus; } + + public String getPayload() { + return payload; + } + + public void setPayload(String payload) { + this.payload = payload; + } } -- cgit 1.2.3-korg