public void close () { db.close(); }
@Override public void close() { db.close(); }
/** * Called when ReplayHandler has completed and thus remove(FlumeEventPointer) * will no longer be called. */ synchronized void replayComplete() { String msg = "Search Count = " + searchCount + ", Search Time = " + searchTime + ", Copy Count = " + copyCount + ", Copy Time = " + copyTime; LOG.info(msg); if (db != null) { db.close(); } queueSet = null; db = null; }
@Override public synchronized void stop() { if (!mmapDB.isClosed()) { mmapDB.close(); if (!tmpFile.delete()) { log.warn("Unable to delete file at [%s]", tmpFile.getAbsolutePath()); } } } }
@Override public void close() { if (!isClosed) { isClosed = true; data.close(); for (GTFSFeed feed : gtfsFeeds.values()) { feed.close(); } } }
@Override public void close() throws FailStoreException { try { db.close(); } catch (Exception e) { throw new FailStoreException(e); } }
@Override public void close() throws FailStoreException { try { db.close(); } catch (Exception e) { throw new FailStoreException(e); } }
/** * It closes all the storageengines in the registry. */ private void closeStorageRegistry() { for(DB storage : storageRegistry.values()) { if(isOpenStorage(storage)) { storage.close(); } } storageRegistry.clear(); }
synchronized void close() throws IOException { try { if (db != null) { db.close(); } } catch (Exception ex) { LOG.warn("Error closing db", ex); } try { backingStore.close(); inflightPuts.close(); inflightTakes.close(); } catch (IOException e) { LOG.warn("Error closing backing store", e); } }
storage.close(); while (!e.isClosed()) { logger.trace("Waiting for the engine to close");
comparisonDb.close();
@Override public void close() throws IOException { this.hashMap.close(); this.db.close(); } }
public void close() { db.commit(); db.close(); }
@Override public void close() throws IOException { this.db.commit(); this.treeMap.close(); this.db.close(); }
/** * MapDB requires the database to be closed at the end of operations. This is usually handled by * the {@code closeOnJvmShutdown()} snippet in the initializer, but this method needs to be * called if multiple instances of the {@link TextAnnotationMapDBHandler} are used. */ public void close() { db.close(); }
public void close() { for (Map.Entry<StorageType, DB> entry : dbPool.entrySet()) { entry.getValue().close(); } dbPool.clear(); }
@Override public void close() { db.commit(); //For write ahead log: need to ensure that we persist all data to disk... db.close(); isClosed = true; }
@Override public void close() { try { db.close(); } catch (Exception e) { NeoLogger.warn(e); } }
@Override public void shutdown() { luceneIndex.shutdown(); db.close(); }
@Override protected void postShutdown() { logger().debug("Shutting down the local index provider '{0}' in repository '{1}'", getName(), getRepositoryName()); if (db != null && !db.isClosed()) { try { db.commit(); db.close(); } finally { db = null; } } }