diff options
author | adheli.tavares <adheli.tavares@est.tech> | 2023-12-18 17:57:33 +0000 |
---|---|---|
committer | adheli.tavares <adheli.tavares@est.tech> | 2023-12-19 13:00:57 +0000 |
commit | ef722a6ef6a64b69bf152c0187992f0ee91a2682 (patch) | |
tree | c721bb2967b2924fdd961a2552735b1651058935 /main | |
parent | 84b2b25e91bfdda81239dea6eee000758c8c861b (diff) |
Allow xacml-pdp to use kafka
Issue-ID: POLICY-4202
Change-Id: Idaff733d93cbfcb9a32731eb3b811e423942f834
Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
Diffstat (limited to 'main')
-rw-r--r-- | main/src/main/java/org/onap/policy/pdpx/main/startstop/Main.java | 3 | ||||
-rw-r--r-- | main/src/main/java/org/onap/policy/pdpx/main/startstop/XacmlPdpActivator.java | 6 |
2 files changed, 4 insertions, 5 deletions
diff --git a/main/src/main/java/org/onap/policy/pdpx/main/startstop/Main.java b/main/src/main/java/org/onap/policy/pdpx/main/startstop/Main.java index b19f31b8..a096d1fa 100644 --- a/main/src/main/java/org/onap/policy/pdpx/main/startstop/Main.java +++ b/main/src/main/java/org/onap/policy/pdpx/main/startstop/Main.java @@ -44,7 +44,7 @@ public class Main { private XacmlPdpActivator activator; @Getter - private String argumentMessage = null; + private String argumentMessage; /** * Instantiates the policy xacml pdp service. @@ -88,7 +88,6 @@ public class Main { /** * Shut down Execution. * - * @throws PolicyXacmlPdpException on shutdown errors */ public synchronized void shutdown() { // clear the xacml pdp activator diff --git a/main/src/main/java/org/onap/policy/pdpx/main/startstop/XacmlPdpActivator.java b/main/src/main/java/org/onap/policy/pdpx/main/startstop/XacmlPdpActivator.java index d421ba75..d62b6f47 100644 --- a/main/src/main/java/org/onap/policy/pdpx/main/startstop/XacmlPdpActivator.java +++ b/main/src/main/java/org/onap/policy/pdpx/main/startstop/XacmlPdpActivator.java @@ -60,12 +60,11 @@ public class XacmlPdpActivator extends ServiceManagerContainer { private static final Logger LOGGER = LoggerFactory.getLogger(XacmlPdpActivator.class); private static final String[] MSG_TYPE_NAMES = {"messageName"}; - private static final String TOPIC = "POLICY-PDP-PAP"; + private static final String TOPIC = "policy-pdp-pap"; @Getter @Setter private static XacmlPdpActivator current = null; - private final XacmlPdpRestServer restServer; // The parameters of this policy xacml pdp activator private final XacmlPdpParameterGroup xacmlPdpParameterGroup; @@ -73,7 +72,7 @@ public class XacmlPdpActivator extends ServiceManagerContainer { /** * POLICY-PDP-PAP client. */ - private BidirectionalTopicClient topicClient; + private final BidirectionalTopicClient topicClient; /** * Listens for messages on the topic, decodes them into a {@link PdpStatus} message, and then @@ -97,6 +96,7 @@ public class XacmlPdpActivator extends ServiceManagerContainer { final TopicSinkClient sinkClient; final XacmlState state; + XacmlPdpRestServer restServer; try { HttpClient apiClient = HttpClientFactoryInstance.getClientFactory().build(apiClientParams); |