@Override public void shutdown() { onHeapCache.shutdown(); l2Cache.shutdown(); }
@Override public void shutdown() { if (victimHandler != null) { victimHandler.shutdown(); } this.scheduleThreadPool.shutdown(); for (int i = 0; i < 10; i++) { if (!this.scheduleThreadPool.isShutdown()) { try { Thread.sleep(10); } catch (InterruptedException e) { LOG.warn("Interrupted while sleeping"); Thread.currentThread().interrupt(); break; } } } if (!this.scheduleThreadPool.isShutdown()) { List<Runnable> runnables = this.scheduleThreadPool.shutdownNow(); LOG.debug("Still running " + runnables); } this.evictionThread.shutdown(); }
blockCache.shutdown();
@Override public void shutdown() { lruCache.shutdown(); l2Cache.shutdown(); }
public void shutdown() { if (victimHandler != null) victimHandler.shutdown(); this.scheduleThreadPool.shutdown(); for (int i = 0; i < 10; i++) { if (!this.scheduleThreadPool.isShutdown()) { try { Thread.sleep(10); } catch (InterruptedException e) { LOG.warn("Interrupted while sleeping"); Thread.currentThread().interrupt(); break; } } } if (!this.scheduleThreadPool.isShutdown()) { List<Runnable> runnables = this.scheduleThreadPool.shutdownNow(); LOG.debug("Still running " + runnables); } this.evictionThread.shutdown(); }
if (bc != null) bc.shutdown();
if (bc != null) bc.shutdown();
public void close() { logger.debug("{}Closing file system: " + getName(), logPrefix); stats.close(); blockCache.shutdown(); //Might want to clear the block cache, but it should be dereferenced. // release DDL hoplog organizer for this store. Also shutdown compaction // threads. These two resources hold references to GemfireCacheImpl // instance. Any error is releasing this resources is not critical and needs // be ignored. try { HDFSCompactionManager manager = HDFSCompactionManager.getInstance(this); if (manager != null) { manager.reset(); } } catch (Exception e) { logger.info(e); } // once this store is closed, this store should not be used again FileSystem fileSystem = fs.clear(false); if (fileSystem != null) { closeFileSystemIgnoreError(fileSystem); } }
@After public void teardown() throws IOException { if (region != null) { BlockCache bc = region.getStores().get(0).getCacheConfig().getBlockCache(); region.close(); WAL wal = region.getWAL(); if (wal != null) wal.close(); if (bc != null) bc.shutdown(); region = null; } } //////////////////////////////////////////////////////////////////////////////
public void close() { logger.fine("Closing file system: " + getName()); stats.close(); blockCache.shutdown(); //Might want to clear the block cache, but it should be dereferenced. // release DDL hoplog organizer for this store. Also shutdown compaction // threads. These two resources hold references to GemfireCacheImpl // instance. Any error is releasing this resources is not critical and needs // be ignored. try { HDFSCompactionManager manager = HDFSCompactionManager.getInstance(this); if (manager != null) { manager.reset(); } if (ddlOrganizer != null) { ddlOrganizer.close(); } } catch (Exception e) { logger.info(e); } // once this store is closed, this store should not be used again FileSystem fileSystem = fs.clear(false); if (fileSystem != null) { closeFileSystemIgnoreError(fileSystem); } }
cacheConfig.getBlockCache().shutdown();
doVerify); } finally { (new CacheConfig(conf)).getBlockCache().shutdown();
cacheConfig.getBlockCache().shutdown();