aboutsummaryrefslogtreecommitdiffstats
path: root/model
diff options
context:
space:
mode:
authormmis <michael.morris@ericsson.com>2018-09-14 09:00:25 +0100
committermmis <michael.morris@ericsson.com>2018-09-14 18:31:41 +0100
commit00b77b9ed6de5779212fecd30b71ebb615f89c3c (patch)
tree0f87db6033059fefdc7e6b278ab63d4225d1e068 /model
parent6d43eadb867277856697778ae53cc21541d21d64 (diff)
Aligned decoder with forwarder for opt. policies
Changed decoder for optimization policies to generate instance of OptimizationPolicy (instead of PdpxPolicy) as expected by the forwarder. Without this change there is a mismatch between the decoder and the forwarder. Added parameters for configuring the static elements of the optimization policies and setting of these elements. Issue-ID: POLICY-927 Change-Id: Ib91a905dc89eed13622fb88e4dd19b3cb9f62c75 Signed-off-by: mmis <michael.morris@ericsson.com>
Diffstat (limited to 'model')
-rw-r--r--model/src/main/java/org/onap/policy/distribution/model/OptimizationPolicy.java7
1 files changed, 1 insertions, 6 deletions
diff --git a/model/src/main/java/org/onap/policy/distribution/model/OptimizationPolicy.java b/model/src/main/java/org/onap/policy/distribution/model/OptimizationPolicy.java
index 971077cc..71b7cef7 100644
--- a/model/src/main/java/org/onap/policy/distribution/model/OptimizationPolicy.java
+++ b/model/src/main/java/org/onap/policy/distribution/model/OptimizationPolicy.java
@@ -30,7 +30,6 @@ public class OptimizationPolicy implements Policy {
private static final String OPTIMIZATION = "Optimization";
private String policyName;
private String policyDescription;
- private String policyConfigType;
private String onapName;
private String configBody;
private String configBodyType;
@@ -62,11 +61,7 @@ public class OptimizationPolicy implements Policy {
}
public String getPolicyConfigType() {
- return policyConfigType;
- }
-
- public void setPolicyConfigType(final String policyConfigType) {
- this.policyConfigType = policyConfigType;
+ return OPTIMIZATION;
}
public String getOnapName() {