public class JanusGraphFactory extends Object
JanusGraph
Modifier and Type | Class and Description |
---|---|
static class |
JanusGraphFactory.Builder |
Constructor and Description |
---|
JanusGraphFactory() |
Modifier and Type | Method and Description |
---|---|
static JanusGraphFactory.Builder |
build()
Returns a
JanusGraphFactory.Builder that allows to set the configuration options for opening a JanusGraph graph database. |
static JanusGraph |
open(BasicConfiguration configuration)
Opens a
JanusGraph database configured according to the provided configuration. |
static JanusGraph |
open(org.apache.commons.configuration.Configuration configuration)
Opens a
JanusGraph database configured according to the provided configuration. |
static JanusGraph |
open(ReadConfiguration configuration)
Opens a
JanusGraph database configured according to the provided configuration. |
static JanusGraph |
open(String shortcutOrFile)
Opens a
JanusGraph database. |
static LogProcessorFramework |
openTransactionLog(JanusGraph graph)
Returns a
LogProcessorFramework for processing transaction log entries
against the provided graph instance. |
static TransactionRecovery |
startTransactionRecovery(JanusGraph graph,
java.time.Instant start)
Returns a
TransactionRecovery process for recovering partially failed transactions. |
public static JanusGraph open(String shortcutOrFile)
JanusGraph
database.
If the argument points to a configuration file, the configuration file is loaded to configure the JanusGraph graph
If the string argument is a configuration short-cut, then the short-cut is parsed and used to configure the returned JanusGraph graph.
A configuration short-cut is of the form:
[STORAGE_BACKEND_NAME]:[DIRECTORY_OR_HOST]shortcutOrFile
- Configuration file name or configuration short-cutpublic static JanusGraph open(org.apache.commons.configuration.Configuration configuration)
JanusGraph
database configured according to the provided configuration.configuration
- Configuration for the graph databasepublic static JanusGraph open(BasicConfiguration configuration)
JanusGraph
database configured according to the provided configuration.configuration
- Configuration for the graph databasepublic static JanusGraph open(ReadConfiguration configuration)
JanusGraph
database configured according to the provided configuration.configuration
- Configuration for the graph databasepublic static JanusGraphFactory.Builder build()
JanusGraphFactory.Builder
that allows to set the configuration options for opening a JanusGraph graph database.
In the builder, the configuration options for the graph can be set individually. Once all options are configured,
the graph can be opened with JanusGraphFactory.Builder.open()
.public static LogProcessorFramework openTransactionLog(JanusGraph graph)
LogProcessorFramework
for processing transaction log entries
against the provided graph instance.graph
- public static TransactionRecovery startTransactionRecovery(JanusGraph graph, java.time.Instant start)
TransactionRecovery
process for recovering partially failed transactions. The recovery process
will start processing the write-ahead transaction log at the specified transaction time.graph
- start
- Copyright © 2012–2017. All rights reserved.