public class Graphs extends Object
Graph
instances configured for the server to be passed to script engine bindings. The
Graph
instances are read from the Settings
for Gremlin Server as defined in the configuration
file. Also holds any TraversalSource
objects as constructed in the server.Constructor and Description |
---|
Graphs(Settings settings)
Create a new instance using the
Settings from Gremlin Server. |
Modifier and Type | Method and Description |
---|---|
void |
commitAll()
Commit transactions across all
Graph objects. |
Map<String,Graph> |
getGraphs()
Get a list of the
Graph instances and their binding names as defined in the Gremlin Server
configuration file. |
Bindings |
getGraphsAsBindings()
Get the
Graph and TraversalSource list as a set of bindings. |
Map<String,TraversalSource> |
getTraversalSources() |
void |
rollbackAll()
Rollback transactions across all
Graph objects. |
public Map<String,TraversalSource> getTraversalSources()
public Bindings getGraphsAsBindings()
Graph
and TraversalSource
list as a set of bindings.public void rollbackAll()
Graph
objects.public void commitAll()
Graph
objects.Copyright © 2013–2015 Apache Software Foundation. All rights reserved.