ibessonov commented on a change in pull request #72:
URL: https://github.com/apache/ignite-3/pull/72#discussion_r598562585



##########
File path: 
modules/configuration/src/main/java/org/apache/ignite/configuration/ConfigurationRegistry.java
##########
@@ -71,6 +80,32 @@ public void registerStorage(ConfigurationStorage 
configurationStorage) {
         return (T)configs.get(rootKey.key());
     }
 
+    /** */
+    public <T> T represent(List<String> path, ConfigurationVisitor<T> 
representationVisitor) {
+        SuperRoot puperRoot = changer.superPuperRoot();
+
+        Object node;
+        try {
+            node = ConfigurationUtil.find(path, puperRoot);
+        }
+        catch (KeyNotFoundException e) {
+            throw new IllegalArgumentException(e.getMessage());
+        }
+
+        if (node instanceof TraversableTreeNode)
+            return ((TraversableTreeNode)node).accept(null, 
representationVisitor);
+
+        assert node == null || node instanceof Serializable;
+
+        return representationVisitor.visitLeafNode(null, (Serializable)node);
+    }
+
+    /** */
+    public CompletableFuture<?> change(List<String> path, ConfigurationSource 
changesSource) {
+        //TODO IGNITE-14372 Not implemented yet.
+        return CompletableFuture.completedFuture(null);

Review comment:
       Yes




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to