public void close() { urlsDB.close(); } }
public void close() { try { if (statisticsDB != null) { statisticsDB.close(); } } catch (DatabaseException e) { logger.error("Exception thrown while trying to close statisticsDB", e); } } }
public void close() { try { docIDsDB.close(); } catch (DatabaseException e) { logger.error("Exception thrown while closing DocIDServer", e); } } }
@Override public synchronized void close() throws DatabaseException { if(classCatalogDB!=null) { classCatalogDB.close(); } super.close(); }
public void close() { try { queueDb.sync(); queueDb.close(); } catch (DatabaseException e) { throw new RuntimeException(e); } } }
public void closeDatabase(String name) { DatabasePlusConfig dpc = databases.remove(name); if (dpc == null) { LOGGER.warning("No such database: " + name); return; } Database db = dpc.database; try { db.sync(); db.close(); } catch (DatabaseException e) { LOGGER.log(Level.WARNING, "Error closing db " + name, e); } }
@Override public synchronized void close() throws BackendException { try { if(isOpen) db.close(); } catch (DatabaseException e) { throw new PermanentBackendException(e); } if (isOpen) manager.removeDatabase(this); isOpen = false; }
@Override public void close() throws PersistenceFailureException { try { if(this.isOpen.compareAndSet(true, false)) this.getBdbDatabase().close(); } catch(DatabaseException e) { this.bdbEnvironmentStats.reportException(e); logger.error(e); throw new PersistenceFailureException("Shutdown failed.", e); } }
public synchronized void close() { // Close out my bdb db. if (this.db != null) { try { sync(); this.db.sync(); this.db.close(); } catch (DatabaseException e) { logger.log(Level.WARNING,"problem closing ObjectIdentityBdbCache",e); } finally { this.db = null; } } }
public synchronized void close() { // Close out my bdb db. if (this.db != null) { try { sync(); this.db.sync(); this.db.close(); } catch (DatabaseException e) { logger.log(Level.WARNING,"problem closing ObjectIdentityBdbCache",e); } finally { this.db = null; } } }
public void dispose() { String name = null; try { if(this.db!=null) { name = this.db.getDatabaseName(); this.db.close(); this.db.getEnvironment().removeDatabase(null, name); this.db = null; } } catch (DatabaseException e) { LOGGER.log(Level.WARNING, "Error closing db " + name, e); } } }
@Override public void close() throws FailStoreException { try { if (db != null) { db.close(); } if (environment != null && environment.isValid()) { environment.cleanLog(); environment.close(); } } catch (Exception e) { throw new FailStoreException(e); } }
@Override public void close() throws FailStoreException { try { if (db != null) { db.close(); } if (environment != null && environment.isValid()) { environment.cleanLog(); environment.close(); } } catch (Exception e) { throw new FailStoreException(e); } }
alreadySeen.close(); } catch (DatabaseException e) { logger.severe(e.getMessage());
sourceHistoryDB.close(); sourceEnv.close();
historyDB.close(); targetEnv.close(); System.out.println(count+" records imported from "+source+" to BDB env "+env);
bdbDatabase.close();
logger.info(count + " records imported from " + sourcePath + " to BDB env " + envFile); historyDB.sync(); historyDB.close(); targetEnv.close(); } else {
public void close() { for (TableWrapper tableWrapper : tables.values()) { try { tableWrapper.getDatabase().close(); } catch (DatabaseException e) { LOGGER.error("", e); } } if (environment != null) { try { environment.close(); } catch (DatabaseException e) { LOGGER.error("", e); } } }