/** * Close a cache. * @param gfc the cache to close. */ protected void closeCache(GemFireCacheImpl gfc) { gfc.close(); }
/** * close the cache * * @param reason * the reason the cache is being closed * @param systemFailureCause * whether this member was ejected from the distributed system * @param keepalive * whoever added this should javadoc it */ public void close(String reason, Throwable systemFailureCause, boolean keepalive) { close(reason, systemFailureCause, keepalive, false); }
@Override public void tearDown() { this.c.close(); }
@Override public void tearDown() { this.c.close(); }
private void closeCache(GemFireCacheImpl gfc) { gfc.close(); // TODO cleanup default disk store files }
@Override public void tearDown() { this.c.close(); }
@Override public void tearDown() { c.close(); }
/** * close the cache * * @param reason * the reason the cache is being closed * @param systemFailureCause * whether this member was ejected from the distributed system * @param keepalive * whoever added this should javadoc it */ public void close(String reason, Throwable systemFailureCause, boolean keepalive) { close(reason, systemFailureCause, keepalive, false); }
@Override public void tearDown() { this.c.close(); }
public void close(String reason, Throwable optionalCause) { close(reason, optionalCause, false, false); }
@Override public void run2() throws CacheException { GemFireCacheImpl.getInstance().close(); } });
@Override protected void tearDown() throws Exception { this.cache.close(); this.ds.disconnect(); super.tearDown(); }
@Override public void run() { getCache().close(); } };
@Override public void run2() throws CacheException { GemFireCacheImpl.getInstance().close(); } });
public void tearDown() throws Exception { store.getFileSystem().delete(new Path("hoplogs"), true); hdfs.close(); cache.close(); }
@Override protected void tearDown() throws Exception { super.tearDown(); HeapMemoryMonitor.setTestDisableMemoryUpdates(false); this.cache.close(); this.ds.disconnect(); }
@Override protected void tearDown() throws Exception { cache.close(); super.tearDown(); FileUtil.delete(backupDir); FileUtil.delete(diskDirs[0]); FileUtil.delete(diskDirs[1]); }
public void run() { try { // now close the cache getCache().close(sid.toLocalizedString(DiskStoreImpl.this.getName(), dae), dae); _testHandleDiskAccessException.countDown(); } catch (Exception e) { logger.error(LocalizedMessage.create(LocalizedStrings.LocalRegion_AN_EXCEPTION_OCCURED_WHILE_CLOSING_THE_CACHE), e); } } };
public void run() { GemFireCacheImpl existingInstance = GemFireCacheImpl.getInstance(); if (existingInstance != null) { existingInstance.close(); } InternalDistributedSystem ds = InternalDistributedSystem .getConnectedInstance(); if (ds != null) { ds.disconnect(); } } });
public static void closeCache() { if (cache != null && !cache.isClosed()) { cache.close(); cache.getDistributedSystem().disconnect(); } }