use of com.torodb.core.backend.ExclusiveWriteBackendTransaction in project torodb by torodb.
the class StampedeService method dropDatabase.
private void dropDatabase(BackendService backendService) throws UserException {
try (BackendConnection conn = backendService.openConnection();
ExclusiveWriteBackendTransaction trans = conn.openExclusiveWriteTransaction()) {
trans.dropUserData();
trans.commit();
}
}
use of com.torodb.core.backend.ExclusiveWriteBackendTransaction in project torodb by torodb.
the class BackendBundleImpl method postDependenciesStartUp.
@Override
protected void postDependenciesStartUp() throws Exception {
lowLevelService.startAsync();
lowLevelService.awaitRunning();
backendService.startAsync();
backendService.awaitRunning();
try (BackendConnection conn = backendService.openConnection();
ExclusiveWriteBackendTransaction trans = conn.openExclusiveWriteTransaction()) {
trans.checkOrCreateMetaDataTables();
trans.commit();
}
}
Aggregations