public void cleanUp() { try { ((Region)map).destroyRegion(); } catch (CancelException e) { // ignore } catch (RegionDestroyedException e) { // ignore } }
public void run2() throws CacheException { Region r = getRootRegion("ProxyDUnitTest"); r.destroyRegion(); } });
public void run2() throws CacheException { Region pr = cache.getRegion(name); if (pr == null) { fail(name + " not created"); } pr.destroyRegion(); } });
public Object call() throws Exception { Region r = getRootRegion(uniqueName); r.destroyRegion(); return null; } };
public void run() { try { Thread.sleep(2500); } catch (InterruptedException ie) { logger .info("PRQueryRegionDestroyedJUnitTest#testQueryOnSingleDataStore:Thread Interrupted Exceptionduring region Destroy "); fail("interrupted"); } region.destroyRegion(); }
public void run() { Cache cache = getCache(); Region region = cache.getRegion(region1Name); region.destroyRegion(); region = cache.getRegion(region2Name); region.destroyRegion(); } });
public void destroyRegion() throws CacheWriterException, TimeoutException { try { preOp(); this.realRegion.destroyRegion(); } finally { postOp(); } }
public void run() { Cache cache =getCache(); Region region = cache.getRegion(REGION_NAME); region.destroyRegion(); } });
public void run2() throws CacheException { Cache cache = getCache(); Region parentRegion = cache.getRegion(Region.SEPARATOR + parentRegionName + Region.SEPARATOR + childRegionName); parentRegion.destroyRegion(); } };
@Override public void run() { getCache().getRegion(REGION_NAME).destroyRegion(); } });
public void run2() throws CacheException { Cache cache = getCache(); Region pr = cache.getRegion(Region.SEPARATOR + prPrefix); assertNotNull("This region is null", pr); pr.destroyRegion(); } };
@Override public void run() { Region<String,String> region = getCache().getRegion(REGION_NAME); assertNotNull(region); region.destroyRegion(); } });
public void run2() throws CacheException { Region region = getRootRegion().getSubregion(name); region.destroyRegion(getSystem().getDistributedMember()); } });
public void run2() { Cache cache = getCache(); Region pr = cache.getRegion(prName); assertNotNull("Region already destroyed.", pr); pr.destroyRegion(); assertTrue("Region isDestroyed false", pr.isDestroyed()); assertNull("Region not destroyed.", cache.getRegion(prName)); } });
public void run2() { Cache cache = getCache(); Region pr = cache.getRegion(prName); assertNotNull("Region already destroyed.", pr); pr.destroyRegion(); assertTrue("Region isDestroyed false", pr.isDestroyed()); assertNull("Region not destroyed.", cache.getRegion(prName)); } });
public void DARREL_DISABLE_testAsyncGetAfterRoll() { DiskRegionProperties diskRegionProperties = new DiskRegionProperties(); diskRegionProperties.setDiskDirs(dirs); diskRegionProperties.setRolling(true); diskRegionProperties.setCompactionThreshold(100); region = DiskRegionHelperFactory.getAsyncPersistOnlyRegion(cache, diskRegionProperties); LocalRegion.ISSUE_CALLBACKS_TO_CACHE_OBSERVER = true; getAfterRoll(region); region.destroyRegion(); }
public void DARREL_DISABLE_testSyncClearBeforeRoll() { DiskRegionProperties diskRegionProperties = new DiskRegionProperties(); diskRegionProperties.setDiskDirs(dirs); diskRegionProperties.setRolling(true); diskRegionProperties.setCompactionThreshold(100); region = DiskRegionHelperFactory.getSyncPersistOnlyRegion(cache, diskRegionProperties, Scope.LOCAL); LocalRegion.ISSUE_CALLBACKS_TO_CACHE_OBSERVER = true; clearBeforeRoll(region); region.destroyRegion(); }
public void DARREL_DISABLE_testSyncClearAfterRoll() { DiskRegionProperties diskRegionProperties = new DiskRegionProperties(); diskRegionProperties.setDiskDirs(dirs); diskRegionProperties.setRolling(true); diskRegionProperties.setCompactionThreshold(100); region = DiskRegionHelperFactory.getSyncPersistOnlyRegion(cache, diskRegionProperties, Scope.LOCAL); LocalRegion.ISSUE_CALLBACKS_TO_CACHE_OBSERVER = true; clearAfterRoll(region); region.destroyRegion(); }
public void run2() throws CacheException { Region region = getRootRegion().getSubregion(name); assertNotNull(region); region.destroyRegion(callbackArg); 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(); } });
public void run2() throws CacheException { for (int j = innerStartIndexForRegion; j < innerEndIndexForRegion; j++) { Region pr = getCache().getRegion(Region.SEPARATOR + innerPRPrefix + j); assertNotNull(pr); getCache().getLogger().info("region going to destroy is : " + pr); pr.destroyRegion(); } } };