clerezza-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject [1/2] git commit: CLEREZZA-881: reduces the time between the system graph being availabe and it containing all the data (not a fix, but should reduce symptoms)
Date Wed, 19 Feb 2014 17:17:12 GMT
Repository: clerezza
Updated Branches:
  refs/heads/master d110dfd4a -> 13b6fe35d


CLEREZZA-881: reduces the time between the system graph being availabe and it containing all
the data (not a fix, but should reduce symptoms)

Project: http://git-wip-us.apache.org/repos/asf/clerezza/repo
Commit: http://git-wip-us.apache.org/repos/asf/clerezza/commit/bf9217a0
Tree: http://git-wip-us.apache.org/repos/asf/clerezza/tree/bf9217a0
Diff: http://git-wip-us.apache.org/repos/asf/clerezza/diff/bf9217a0

Branch: refs/heads/master
Commit: bf9217a0a46bcb5f81256e6393f5c6bfa5e009c1
Parents: d110dfd
Author: retobg <reto@apache.org>
Authored: Wed Feb 19 17:34:12 2014 +0100
Committer: retobg <reto@apache.org>
Committed: Wed Feb 19 17:34:12 2014 +0100

----------------------------------------------------------------------
 .../java/org/apache/clerezza/platform/config/SystemConfig.java | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/clerezza/blob/bf9217a0/platform.config/src/main/java/org/apache/clerezza/platform/config/SystemConfig.java
----------------------------------------------------------------------
diff --git a/platform.config/src/main/java/org/apache/clerezza/platform/config/SystemConfig.java
b/platform.config/src/main/java/org/apache/clerezza/platform/config/SystemConfig.java
index a10aaa3..a241976 100644
--- a/platform.config/src/main/java/org/apache/clerezza/platform/config/SystemConfig.java
+++ b/platform.config/src/main/java/org/apache/clerezza/platform/config/SystemConfig.java
@@ -29,6 +29,7 @@ import org.apache.clerezza.rdf.core.MGraph;
 import org.apache.clerezza.rdf.core.UriRef;
 import org.apache.clerezza.rdf.core.access.NoSuchEntityException;
 import org.apache.clerezza.rdf.core.access.TcManager;
+import org.apache.clerezza.rdf.core.impl.SimpleMGraph;
 import org.apache.clerezza.rdf.core.serializedform.SupportedFormat;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
@@ -73,9 +74,12 @@ public class SystemConfig {
         try {
             tcManager.getMGraph(Constants.SYSTEM_GRAPH_URI);
         } catch (NoSuchEntityException nsee) {
+            MGraph loadedFile = new SimpleMGraph();
+            readConfigGraphFile(loadedFile);
             MGraph systemGraph = tcManager.createMGraph(Constants.SYSTEM_GRAPH_URI);
+            systemGraph.addAll(loadedFile);
             logger.info("Add initial configuration to system graph");
-            readConfigGraphFile(systemGraph);
+            
             
         }
     }


Mime
View raw message