public class JanusGraphManager extends Object implements org.apache.tinkerpop.gremlin.server.GraphManager
Modifier and Type | Field and Description |
---|---|
static String |
JANUS_GRAPH_MANAGER_EXPECTED_STATE_MSG |
Constructor and Description |
---|
JanusGraphManager(org.apache.tinkerpop.gremlin.server.Settings settings)
This class adheres to the TinkerPop graphManager specifications.
|
Modifier and Type | Method and Description |
---|---|
void |
closeTx(org.apache.tinkerpop.gremlin.structure.Graph graph,
Boolean commit) |
void |
commit(Set<String> graphSourceNamesToCloseTxOn) |
void |
commitAll() |
void |
commitOrRollback(Set<String> graphSourceNamesToCloseTxOn,
Boolean commit) |
void |
configureGremlinExecutor(org.apache.tinkerpop.gremlin.groovy.engine.GremlinExecutor gremlinExecutor) |
Bindings |
getAsBindings()
Get the
Graph and TraversalSource list as a set of bindings. |
org.apache.tinkerpop.gremlin.structure.Graph |
getGraph(String gName) |
Set<String> |
getGraphNames() |
static JanusGraphManager |
getInstance() |
org.apache.tinkerpop.gremlin.process.traversal.TraversalSource |
getTraversalSource(String tsName) |
Set<String> |
getTraversalSourceNames() |
org.apache.tinkerpop.gremlin.structure.Graph |
openGraph(String gName,
Function<String,org.apache.tinkerpop.gremlin.structure.Graph> thunk) |
void |
putGraph(String gName,
org.apache.tinkerpop.gremlin.structure.Graph g) |
void |
putTraversalSource(String tsName,
org.apache.tinkerpop.gremlin.process.traversal.TraversalSource ts) |
org.apache.tinkerpop.gremlin.structure.Graph |
removeGraph(String gName) |
org.apache.tinkerpop.gremlin.process.traversal.TraversalSource |
removeTraversalSource(String tsName) |
static void |
resetInstance() |
void |
rollback(Set<String> graphSourceNamesToCloseTxOn) |
void |
rollbackAll() |
protected static void |
shutdownJanusGraphManager() |
public static final String JANUS_GRAPH_MANAGER_EXPECTED_STATE_MSG
public JanusGraphManager(org.apache.tinkerpop.gremlin.server.Settings settings)
public static JanusGraphManager getInstance()
public static void resetInstance()
public void configureGremlinExecutor(org.apache.tinkerpop.gremlin.groovy.engine.GremlinExecutor gremlinExecutor)
protected static void shutdownJanusGraphManager()
public Set<String> getGraphNames()
getGraphNames
in interface org.apache.tinkerpop.gremlin.server.GraphManager
public org.apache.tinkerpop.gremlin.structure.Graph getGraph(String gName)
getGraph
in interface org.apache.tinkerpop.gremlin.server.GraphManager
public void putGraph(String gName, org.apache.tinkerpop.gremlin.structure.Graph g)
putGraph
in interface org.apache.tinkerpop.gremlin.server.GraphManager
public Set<String> getTraversalSourceNames()
getTraversalSourceNames
in interface org.apache.tinkerpop.gremlin.server.GraphManager
public org.apache.tinkerpop.gremlin.process.traversal.TraversalSource getTraversalSource(String tsName)
getTraversalSource
in interface org.apache.tinkerpop.gremlin.server.GraphManager
public void putTraversalSource(String tsName, org.apache.tinkerpop.gremlin.process.traversal.TraversalSource ts)
putTraversalSource
in interface org.apache.tinkerpop.gremlin.server.GraphManager
public org.apache.tinkerpop.gremlin.process.traversal.TraversalSource removeTraversalSource(String tsName)
removeTraversalSource
in interface org.apache.tinkerpop.gremlin.server.GraphManager
public Bindings getAsBindings()
Graph
and TraversalSource
list as a set of bindings.getAsBindings
in interface org.apache.tinkerpop.gremlin.server.GraphManager
public void rollbackAll()
rollbackAll
in interface org.apache.tinkerpop.gremlin.server.GraphManager
public void rollback(Set<String> graphSourceNamesToCloseTxOn)
rollback
in interface org.apache.tinkerpop.gremlin.server.GraphManager
public void commitAll()
commitAll
in interface org.apache.tinkerpop.gremlin.server.GraphManager
public void commit(Set<String> graphSourceNamesToCloseTxOn)
commit
in interface org.apache.tinkerpop.gremlin.server.GraphManager
public void commitOrRollback(Set<String> graphSourceNamesToCloseTxOn, Boolean commit)
public void closeTx(org.apache.tinkerpop.gremlin.structure.Graph graph, Boolean commit)
public org.apache.tinkerpop.gremlin.structure.Graph openGraph(String gName, Function<String,org.apache.tinkerpop.gremlin.structure.Graph> thunk)
openGraph
in interface org.apache.tinkerpop.gremlin.server.GraphManager
public org.apache.tinkerpop.gremlin.structure.Graph removeGraph(String gName)
removeGraph
in interface org.apache.tinkerpop.gremlin.server.GraphManager
Copyright © 2012–2023. All rights reserved.