public class GraphDatabaseFactory extends Object
GraphDatabaseService
with Community Edition features.
Use newEmbeddedDatabase(File)
or
newEmbeddedDatabaseBuilder(File)
to create a database instance.
Note: If you are using the Enterprise Edition of Neo4j in embedded mode, you have to create your
database with the EnterpriseGraphDatabaseFactory
to enable the Enterprise Edition features, or the
HighlyAvailableGraphDatabaseFactory
for the
Enterprise and High-Availability features. There is no factory for the Causal Clustering features, because it is
currently not possible to run a causal cluster in embedded mode.
Constructor and Description |
---|
GraphDatabaseFactory() |
Modifier and Type | Method and Description |
---|---|
GraphDatabaseFactory |
addURLAccessRule(String protocol,
org.neo4j.graphdb.security.URLAccessRule rule) |
String |
getEdition() |
org.neo4j.graphdb.GraphDatabaseService |
newEmbeddedDatabase(File storeDir) |
GraphDatabaseBuilder |
newEmbeddedDatabaseBuilder(File storeDir) |
GraphDatabaseFactory |
setMonitors(org.neo4j.kernel.monitoring.Monitors monitors) |
GraphDatabaseFactory |
setUserLogProvider(org.neo4j.logging.LogProvider userLogProvider) |
public org.neo4j.graphdb.GraphDatabaseService newEmbeddedDatabase(File storeDir)
public GraphDatabaseBuilder newEmbeddedDatabaseBuilder(File storeDir)
public GraphDatabaseFactory addURLAccessRule(String protocol, org.neo4j.graphdb.security.URLAccessRule rule)
public GraphDatabaseFactory setUserLogProvider(org.neo4j.logging.LogProvider userLogProvider)
public GraphDatabaseFactory setMonitors(org.neo4j.kernel.monitoring.Monitors monitors)
public String getEdition()
Copyright © 2002–2017 The Neo4j Graph Database Project. All rights reserved.