Merge "Process data-updated event asynchronously"
[cps.git] / cps-application / src / main / resources / application.yml
index 9d52164..39309d8 100644 (file)
@@ -1,12 +1,14 @@
 #  ============LICENSE_START=======================================================\r
-#  Modification (C) 2021 Nordix Foundation\r
-#  Modification Copyright (C) 2021 Bell Canada.\r
+#  Copyright (C) 2021 Pantheon.tech\r
+#  Modifications Copyright (C) 2021 Bell Canada\r
+#  Modifications Copyright (C) 2021 Nordix Foundation\r
 #  ================================================================================\r
 #  Licensed under the Apache License, Version 2.0 (the "License");\r
 #  you may not use this file except in compliance with the License.\r
 #  You may obtain a copy of the License at\r
 #\r
 #        http://www.apache.org/licenses/LICENSE-2.0\r
+#\r
 #  Unless required by applicable law or agreed to in writing, software\r
 #  distributed under the License is distributed on an "AS IS" BASIS,\r
 #  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
@@ -69,7 +71,21 @@ spring:
 notification:\r
     data-updated:\r
         enabled: false\r
-        topic: ${CPS_CHANGE_EVENT_TOPIC:cps.cfg-state-events}\r
+        topic: ${CPS_CHANGE_EVENT_TOPIC:cps.data-updated-events}\r
+        filters:\r
+            enabled-dataspaces: ${NOTIFICATION_DATASPACE_FILTER_PATTERNS:""}\r
+    async-executor:\r
+        core-pool-size: 2\r
+        max-pool-size: 10\r
+        queue-capacity: 500\r
+        wait-for-tasks-to-complete-on-shutdown: true\r
+        thread-name-prefix: Async-\r
+\r
+\r
+springdoc:\r
+    swagger-ui:\r
+        url: /openapi.yml\r
+        path: /swagger-ui/index.html\r
 \r
 security:\r
     # comma-separated uri patterns which do not require authorization\r
@@ -98,3 +114,8 @@ logging:
     level:\r
         org:\r
             springframework: INFO\r
+\r
+dmi:\r
+    auth:\r
+        username: ${DMI_USERNAME}\r
+        password: ${DMI_PASSWORD}\r