Creation of DataNodeBuilder with module name prefix is very slow 93/131493/12
authorToineSiebelink <toine.siebelink@est.tech>
Mon, 24 Oct 2022 13:12:32 +0000 (14:12 +0100)
committerPriyank Maheshwari <priyank.maheshwari@est.tech>
Wed, 26 Oct 2022 13:14:25 +0000 (13:14 +0000)
commit2a18c1df031b3b9fd04784673319e1cd38e12267
tree5d67303600f50d6521825a566898623949e64f5b
parente5254a7b007e4a0dc59003d94f43e688c25cf7d1
Creation of DataNodeBuilder with module name prefix is very slow

- Created a new hazelcast distributed cache for anchor data config use cases.
- Module name prefix is added for root data node only.
- Cached module name prefix by anchor name on demand from database at
  first call.
- Introduced a new cache holder to have module name prefix of diff.
  levels.

Issue-ID: CPS-1326
Change-Id: I9072f5efdeea59843cd827ac556d3c0547a3a0cf
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
cps-ri/pom.xml
cps-ri/src/main/java/org/onap/cps/spi/cache/AnchorDataCacheConfig.java [new file with mode: 0644]
cps-ri/src/main/java/org/onap/cps/spi/cache/AnchorDataCacheEntry.java [new file with mode: 0644]
cps-ri/src/main/java/org/onap/cps/spi/impl/CpsDataPersistenceServiceImpl.java
cps-ri/src/test/groovy/org/onap/cps/spi/cache/AnchorDataCacheConfigSpec.groovy [new file with mode: 0644]
cps-ri/src/test/groovy/org/onap/cps/spi/cache/AnchorDataCacheEntrySpec.groovy [new file with mode: 0644]
cps-ri/src/test/groovy/org/onap/cps/spi/impl/CpsDataPersistenceServiceSpec.groovy
cps-ri/src/test/groovy/org/onap/cps/spi/impl/CpsPersistenceSpecBase.groovy
cps-ri/src/test/resources/application.yml
cps-service/src/main/java/org/onap/cps/spi/model/DataNode.java