tinkerpop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From spmalle...@apache.org
Subject [30/50] incubator-tinkerpop git commit: Added a constructor to RemoteGraph to take a file location string.
Date Fri, 18 Mar 2016 13:31:18 GMT
Added a constructor to RemoteGraph to take a file location string.


Project: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/commit/66c06942
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/tree/66c06942
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/diff/66c06942

Branch: refs/heads/master
Commit: 66c06942dc893ab46c6ff2b136314430221b9773
Parents: 10a7412
Author: Stephen Mallette <spmva@genoprime.com>
Authored: Thu Mar 17 08:43:42 2016 -0400
Committer: Stephen Mallette <spmva@genoprime.com>
Committed: Thu Mar 17 17:01:35 2016 -0400

----------------------------------------------------------------------
 .../apache/tinkerpop/gremlin/process/remote/RemoteGraph.java   | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/66c06942/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/remote/RemoteGraph.java
----------------------------------------------------------------------
diff --git a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/remote/RemoteGraph.java
b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/remote/RemoteGraph.java
index 86b9940..c3defee 100644
--- a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/remote/RemoteGraph.java
+++ b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/remote/RemoteGraph.java
@@ -18,7 +18,9 @@
  */
 package org.apache.tinkerpop.gremlin.process.remote;
 
+import org.apache.commons.configuration.BaseConfiguration;
 import org.apache.commons.configuration.Configuration;
+import org.apache.commons.configuration.PropertiesConfiguration;
 import org.apache.tinkerpop.gremlin.process.computer.GraphComputer;
 import org.apache.tinkerpop.gremlin.process.remote.traversal.strategy.RemoteStrategy;
 import org.apache.tinkerpop.gremlin.process.traversal.TraversalStrategies;
@@ -113,6 +115,10 @@ public class RemoteGraph implements Graph {
         return new RemoteGraph(remoteConnection);
     }
 
+    public static RemoteGraph open(final String configFile) throws Exception {
+        return open(new PropertiesConfiguration(configFile));
+    }
+
     /**
      * Creates a new {@link RemoteGraph} instance. {@link RemoteGraph} will attempt to call
the
      * {@link RemoteConnection#close()} method when the {@link #close()} method is called
on this class.


Mime
View raw message