use of org.apache.commons.configuration.ConfigurationException in project janusgraph by JanusGraph.
the class RemoteGraphApp method openGraph.
@Override
public GraphTraversalSource openGraph() throws ConfigurationException {
LOGGER.info("opening graph");
conf = new PropertiesConfiguration(propFileName);
// using the remote driver for schema
try {
cluster = Cluster.open(conf.getString("gremlin.remote.driver.clusterFile"));
client = cluster.connect();
} catch (Exception e) {
throw new ConfigurationException(e);
}
// using the remote graph for queries
graph = EmptyGraph.instance();
g = graph.traversal().withRemote(conf);
return g;
}
Aggregations