use of org.neo4j.graphdb.facade.DatabaseManagementServiceFactory in project neo4j by neo4j.
the class CommitContentionTest method createDb.
private GraphDatabaseService createDb() {
Config cfg = Config.newBuilder().set(neo4j_home, testDirectory.absolutePath()).build();
managementService = new DatabaseManagementServiceFactory(DbmsInfo.COMMUNITY, globalModule -> new CommunityEditionModule(globalModule) {
@Override
public DatabaseTransactionStats createTransactionMonitor() {
return new SkipTransactionDatabaseStats();
}
}).build(cfg, GraphDatabaseDependencies.newDependencies().dependencies(noOpSystemGraphInitializer(cfg)));
return managementService.database(cfg.get(GraphDatabaseSettings.default_database));
}
Aggregations