aboutsummaryrefslogtreecommitdiffstats
path: root/feature-lifecycle/src
diff options
context:
space:
mode:
authorjhh <jorge.hernandez-herrero@att.com>2020-02-16 19:23:31 -0600
committerjhh <jorge.hernandez-herrero@att.com>2020-02-16 19:23:31 -0600
commit4cc7ec656d541c9d0c929e64c5e05b2b85da072f (patch)
tree8114741d41d0432a75290598975d104691bbb0f4 /feature-lifecycle/src
parenta5097dca9f0caf3f2098984c62402351845ebd6b (diff)
Native policies support in docker
Depends on https://gerrit.onap.org/r/#/c/policy/docker/+/101758/ for package cleanup. The work is needed to run the PDP-D with no applications, native policies may exercise this set up. This work provides a functional image with a precooked installation. This work will allow fixing and cleaning up of CSITs specific to this repo which maintenance is problematic. Issue-ID: POLICY-2181 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: I62a1b9b556bd2f6c0c243062cb864dfed80e2bea
Diffstat (limited to 'feature-lifecycle/src')
-rw-r--r--feature-lifecycle/src/main/java/org/onap/policy/drools/lifecycle/LifecycleFsm.java11
1 files changed, 7 insertions, 4 deletions
diff --git a/feature-lifecycle/src/main/java/org/onap/policy/drools/lifecycle/LifecycleFsm.java b/feature-lifecycle/src/main/java/org/onap/policy/drools/lifecycle/LifecycleFsm.java
index e2c212cd..119ae7aa 100644
--- a/feature-lifecycle/src/main/java/org/onap/policy/drools/lifecycle/LifecycleFsm.java
+++ b/feature-lifecycle/src/main/java/org/onap/policy/drools/lifecycle/LifecycleFsm.java
@@ -20,6 +20,7 @@
package org.onap.policy.drools.lifecycle;
+import com.fasterxml.jackson.annotation.JsonIgnore;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
@@ -30,7 +31,6 @@ import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.ScheduledFuture;
import java.util.concurrent.ScheduledThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
-import lombok.AccessLevel;
import lombok.Getter;
import lombok.NonNull;
import lombok.Setter;
@@ -85,9 +85,6 @@ public class LifecycleFsm implements Startable {
protected final Properties properties;
- @Getter(AccessLevel.PACKAGE)
- protected final DomainMaker domainMaker = PolicyEngineConstants.getManager().getDomainMaker();
-
protected TopicSource source;
protected TopicSinkClient client;
@@ -141,6 +138,12 @@ public class LifecycleFsm implements Startable {
new PolicyTypeRulesController(this, POLICY_TYPE_DROOLS_NATIVE_RULES));
}
+ @JsonIgnore
+ @GsonJsonIgnore
+ public DomainMaker getDomainMaker() {
+ return PolicyEngineConstants.getManager().getDomainMaker();
+ }
+
@Override
public boolean isAlive() {
return client != null && client.getSink().isAlive();