summaryrefslogtreecommitdiffstats
path: root/src/main/resources/application.yml
diff options
context:
space:
mode:
authorhalil.cakal <halil.cakal@est.tech>2023-03-14 11:24:26 +0000
committerhalil.cakal <halil.cakal@est.tech>2023-03-29 15:13:47 +0100
commit8d8ec86444fb3e085d7dd350966beb92ca0a8ba8 (patch)
tree7ec78469a9031f86effd98cd531b5147c64ab95a /src/main/resources/application.yml
parent221ee7ddfe4a0bce0bc8ad57907404429821bc3d (diff)
Subscription Create Response Handling Dmi Part
- Consume suscription event (payload) with kafka message key and kafka timestamp from ncmp, and extract cm handle ids. - Generate subscription event response (payload) and revert it back to ncmp to specified topic with the corresponding kafka message key. - Configure kafka consumer properties and dmi service name. Issue-ID: CPS-1492 Change-Id: I87de30c00e0f93e350ce6f9fd6079504952da09b Signed-off-by: halil.cakal <halil.cakal@est.tech>
Diffstat (limited to 'src/main/resources/application.yml')
-rw-r--r--src/main/resources/application.yml15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml
index 6ad9d58d..04001435 100644
--- a/src/main/resources/application.yml
+++ b/src/main/resources/application.yml
@@ -1,5 +1,5 @@
# ============LICENSE_START=======================================================
-# Copyright (C) 2021-2022 Nordix Foundation
+# Copyright (C) 2021-2023 Nordix Foundation
# Modifications Copyright (C) 2021 Bell Canada.
# ================================================================================
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -23,6 +23,7 @@ server:
dmi:
service:
url: ${DMI_SERVICE_URL}
+ name: ${DMI_SERVICE_NAME:ncmp-dmi-plugin}
rest:
api:
@@ -52,11 +53,23 @@ spring:
key-serializer: org.apache.kafka.common.serialization.StringSerializer
value-serializer: org.springframework.kafka.support.serializer.JsonSerializer
client-id: ncmp-dmi-plugin
+ consumer:
+ group-id: ${NCMP_CONSUMER_GROUP_ID:ncmp-group}
+ key-deserializer: org.springframework.kafka.support.serializer.ErrorHandlingDeserializer
+ value-deserializer: org.springframework.kafka.support.serializer.ErrorHandlingDeserializer
+ properties:
+ spring.deserializer.key.delegate.class: org.apache.kafka.common.serialization.StringDeserializer
+ spring.deserializer.value.delegate.class: org.springframework.kafka.support.serializer.JsonDeserializer
+ spring.json.use.type.headers: false
app:
ncmp:
async:
topic: ${NCMP_ASYNC_M2M_TOPIC:ncmp-async-m2m}
+ dmi:
+ avc:
+ subscription-topic: ${DMI_CM_AVC_SUBSCRIPTION:ncmp-dmi-cm-avc-subscription-${dmi.service.name}}
+ subscription-response-topic: ${DMI_CM_AVC_SUBSCRIPTION_RESPONSE:dmi-ncmp-cm-avc-subscription}
notification:
async: