use of com.baidu.hugegraph.auth.HugeGraphAuthProxy in project incubator-hugegraph by apache.
the class GraphManager method loadGraph.
private void loadGraph(String name, String path) {
final Graph graph = GraphFactory.open(path);
this.graphs.put(name, graph);
HugeConfig config = (HugeConfig) graph.configuration();
config.file(path);
LOG.info("Graph '{}' was successfully configured via '{}'", name, path);
if (this.requireAuthentication() && !(graph instanceof HugeGraphAuthProxy)) {
LOG.warn("You may need to support access control for '{}' with {}", path, HugeFactoryAuthProxy.GRAPH_FACTORY);
}
}
Aggregations