use of com.neo4j.dbms.api.EnterpriseDatabaseManagementServiceBuilder in project neo4j-documentation by neo4j.
the class TestBackup method before.
@Before
public void before() throws IOException {
Files.createDirectories(backupDirectory);
managementService = new EnterpriseDatabaseManagementServiceBuilder(databaseDirectory).setConfig(Collections.singletonMap(OnlineBackupSettings.online_backup_listen_address, new SocketAddress("127.0.0.1", backupPort))).build();
}
use of com.neo4j.dbms.api.EnterpriseDatabaseManagementServiceBuilder in project neo4j-documentation by neo4j.
the class Neo4jInstance method newEnterpriseInstance.
public DatabaseManagementService newEnterpriseInstance() throws IOException {
Files.createDirectories(baseDatabaseDirectory);
DatabaseManagementService managementService = new EnterpriseDatabaseManagementServiceBuilder(databaseDirectory()).setConfig(Map.of(OnlineBackupSettings.online_backup_listen_address, new SocketAddress("127.0.0.1", 0), OnlineBackupSettings.online_backup_enabled, java.lang.Boolean.FALSE, GraphDatabaseSettings.auth_enabled, true)).build();
registerShutdownHook(managementService);
return managementService;
}
Aggregations