From c00931cffb0d6e1e8098a929340d442bc8e5f4f5 Mon Sep 17 00:00:00 2001 From: Jorge Hernandez Date: Wed, 26 Jul 2017 10:09:16 -0500 Subject: [POLICY-119] noop endpoint and refactoring noop endpoint was added to support communication between drools-applications and policy-framework using the common "PolicyEngine.deliver(topic, message)" mechanins. The endpoint type will be noop. This can be used for testing sanity of any given drools-application from the framework. An intial refactoring of the endpoints hierarchy was added too. Change-Id: I62dbe75f511dd6215406fbd7cf0dd5a88bc1efc3 Signed-off-by: Jorge Hernandez --- .../openecomp/policy/drools/controller/DroolsControllerFactory.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'policy-management/src') diff --git a/policy-management/src/main/java/org/openecomp/policy/drools/controller/DroolsControllerFactory.java b/policy-management/src/main/java/org/openecomp/policy/drools/controller/DroolsControllerFactory.java index 276573eb..625eef56 100644 --- a/policy-management/src/main/java/org/openecomp/policy/drools/controller/DroolsControllerFactory.java +++ b/policy-management/src/main/java/org/openecomp/policy/drools/controller/DroolsControllerFactory.java @@ -241,6 +241,11 @@ class IndexedDroolsControllerFactory implements DroolsControllerFactory { } else { PROPERTY_TOPIC_ENTITY_PREFIX = PolicyProperties.PROPERTY_DMAAP_SINK_TOPICS + "."; } + } else if (commInfra == CommInfrastructure.NOOP) { + if (!isSource) + PROPERTY_TOPIC_ENTITY_PREFIX = PolicyProperties.PROPERTY_NOOP_SINK_TOPICS + "."; + else + continue; } else { throw new IllegalArgumentException("Invalid Communication Infrastructure: " + commInfra); } -- cgit 1.2.3-korg