From 2a18c1df031b3b9fd04784673319e1cd38e12267 Mon Sep 17 00:00:00 2001 From: ToineSiebelink Date: Mon, 24 Oct 2022 14:12:32 +0100 Subject: 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 Signed-off-by: ToineSiebelink Signed-off-by: mpriyank --- cps-service/src/main/java/org/onap/cps/spi/model/DataNode.java | 1 + 1 file changed, 1 insertion(+) (limited to 'cps-service') diff --git a/cps-service/src/main/java/org/onap/cps/spi/model/DataNode.java b/cps-service/src/main/java/org/onap/cps/spi/model/DataNode.java index c77daafb38..19d5adef02 100644 --- a/cps-service/src/main/java/org/onap/cps/spi/model/DataNode.java +++ b/cps-service/src/main/java/org/onap/cps/spi/model/DataNode.java @@ -45,6 +45,7 @@ public class DataNode implements Serializable { private String anchorName; private ModuleReference moduleReference; private String xpath; + @Setter(AccessLevel.PUBLIC) private String moduleNamePrefix; private Map leaves = Collections.emptyMap(); private Collection xpathsChildren; -- cgit 1.2.3-korg