protected void tearDown() throws java.lang.Exception { try{ this.region.localDestroyRegion(); }catch(RegionDestroyedException rde) { //Ignore } CacheUtils.closeCache(); }
public void run2() throws CacheException { Region region = getRootRegion(name); region.localDestroyRegion(); } };
public void run2() throws CacheException { Region region = getRootRegion(name); region.localDestroyRegion(); } };
public void run2() throws CacheException { Region region = getRootRegion(name); region.localDestroyRegion(); } };
public void run2() { if (vmNo == 0) { cache.getRegion(regionName).localDestroyRegion(); } assertTrue("Cache is found as null ", cache != null); cache.close(); } };
public void run2() { cache.getRegion(regionName).localDestroyRegion(); assertTrue("Cache is found as null ", cache != null); cache.close(); } };
public void run2() throws CacheException { Region region = getRootRegion().getSubregion(name); region.localDestroyRegion(); } };
public void run2() throws CacheException { Region region = getRootRegion().getSubregion(name); region.localDestroyRegion(); } });
public void run2() throws CacheException { Region region = getRootRegion().getSubregion(name); region.localDestroyRegion(); } });
public void run2() throws CacheException { Region region = getRootRegion().getSubregion(name); region.localDestroyRegion(); } };
public void run2() throws CacheException { Region region = getRootRegion().getSubregion(name); region.localDestroyRegion(); } };
public void run2() throws CacheException { Region region = getRootRegion().getSubregion(name); region.localDestroyRegion(); } };
public void run2() throws CacheException { Region dr = getCache().getRegion("__DynamicRegions"); if(dr != null) { dr.localDestroyRegion(); } } };
public void run2() throws CacheException { Region dr = getCache().getRegion("__DynamicRegions"); if(dr != null) { dr.localDestroyRegion(); } } };
public void run2() throws CacheException { // destroy WAN region Region wanRegion = getCache().getRegion(WAN_REGION_NAME); wanRegion.localDestroyRegion(); clearListeners(); } };
public void tearDown() throws Exception { super.tearDown(); assertNotNull(cache); Region rgn = cache.getRegion(Region.SEPARATOR + regionName); assertNotNull(rgn); rgn.localDestroyRegion(); cache.close(); }
public static void localDestroyRegion(String regionName) { ExpectedException exp = addExpectedException(PRLocallyDestroyedException.class .getName()); try { Region r = cache.getRegion(Region.SEPARATOR + regionName); assertNotNull(r); r.localDestroyRegion(); } finally { exp.remove(); } }
public void run2() throws CacheException { // destroy WAN region Region wanRegion = getCache().getRegion(WAN_REGION_NAME); wanRegion.localDestroyRegion(); clearListeners(); } };
public void run2() throws CacheException { Region region = getRootRegion().getSubregion(name); region.localDestroyRegion(); assertNull(getRootRegion().getSubregion(name)); // close the bridge writer to prevent callbacks on the connections // Not necessary since locally destroying the region takes care of this. //getPoolClient(region).close(); } });
private void cleanUpRegion(Region r) { if (r != null && !r.getCache().isClosed() && !r.isDestroyed() && r.getCache().getDistributedSystem().isConnected()) { this.cache = r.getCache(); this.distSys = this.cache.getDistributedSystem(); r.localDestroyRegion(); } }