Performance Improvement: Watchdog Parallel execution with configuration 34/130534/3
authorsourabh_sourabh <sourabh.sourabh@est.tech>
Wed, 31 Aug 2022 10:58:09 +0000 (11:58 +0100)
committerToine Siebelink <toine.siebelink@est.tech>
Thu, 1 Sep 2022 08:18:17 +0000 (08:18 +0000)
commit791af2fb0f717a2b58d55a7d16d6fb33060b7205
tree145e71f5ca96a526594ba3f5461fdddf2b9fa5ba
parentb176de24a873cbd6ff8df07c7947ed6ba7093af7
Performance Improvement: Watchdog Parallel execution with configuration

- Introduced AsyncSyncExecutor to get task and execute it with
  configured number of parallel threads.
- Number of parallel thread can be configured from application.yml.
- AsyncTaskExecutorSpec is added
- Fixed existing grovvy test now async task would be submitted.

Issue-ID: CPS-1200
Change-Id: I58c0368b945c90e619c2acfc7458ba58de047484
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
cps-application/src/main/resources/application.yml
cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/inventory/sync/ModuleSyncTasks.java
cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/inventory/sync/ModuleSyncWatchdog.java
cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/inventory/sync/executor/AsyncTaskExecutor.java [new file with mode: 0644]
cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/api/inventory/sync/ModuleSyncTasksSpec.groovy
cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/api/inventory/sync/ModuleSyncWatchdogSpec.groovy
cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/api/inventory/sync/executor/AsyncTaskExecutorSpec.groovy [new file with mode: 0644]
cps-ncmp-service/src/test/resources/application.yml