public void run2() throws CacheException { Region region = getRootRegion(name); region.close(); } });
public void run2() throws CacheException { Region region = getRootRegion(name); region.close(); } });
@Override public void run() { getCache().getRegion(region).close(); } });
@Override public void run() { getClientCache(getClientCacheFactory(getLocatorPort())).getRegion(REGION_NAME).close(); } });
public static void closeRegion(String regionName) { Region r = cache.getRegion(Region.SEPARATOR + regionName); assertNotNull(r); r.close(); }
@Override public void close() { Region r = getRegion(); if (r != null && !r.isDestroyed()) { try { r.close(); } catch (RegionDestroyedException e) { } } }
public void close() { try { preOp(); this.realRegion.close(); } finally { postOp(); } }
@Override public void close() { Region r = getRegion(); if (r != null && !r.isDestroyed()) { try { r.close(); } catch (RegionDestroyedException e) { } } }
public void run() { Cache cache = getCache(); Region region = cache.getRegion(PR_REGION_NAME); region.close(); } };
public void run2() throws CacheException { Cache cache = getCache(); Region parentRegion = cache.getRegion(Region.SEPARATOR + parentRegionName + Region.SEPARATOR + childRegionName); parentRegion.close(); } };
public static void closeRegion(String regionName) { Region r = cache.getRegion(Region.SEPARATOR + regionName); assertNotNull(r); r.close(); }
public void run() { Cache cache = getCache(); Region region = cache.getRegion(REGION_NAME); region.close(); } };
public void run() { getLogWriter().info("[testLonerClientEventsInServer] close bridge client region"); getRootRegion().getSubregion(name).close(); PoolManager.close(); } });
public void testPersistAndOverflowAndThenOverflowOnly(){ createPersistAndOverflow(); put100Int(); region.close(); try { createOverflowOnly(); fail("expected IllegalStateException"); } catch (IllegalStateException expected) { } createPersistAndOverflow(); }
public void run() { getLogWriter().info("[doTestSystemClientEventsInServer] close bridge client region"); getRootRegion().getSubregion(name).close(); PoolManager.close(); } });
public void testTxDistributedRegion() throws Exception { AttributesFactory attr = new AttributesFactory(); attr.setScope(Scope.DISTRIBUTED_ACK); Region region = cache.createRegion("DistributedRegion", attr.create()); checkOpRejection(region, true, true); region.close(); assertEquals(0 + SYSTEM_LISTENERS, cache.getResourceManager(false). getResourceListeners(ResourceType.HEAP_MEMORY).size()); }
public void testDestroyWithClosedRegion() { DiskStoreFactory dsf = cache.createDiskStoreFactory(); String name = "testDestroy"; DiskStore ds = dsf.create(name); Region region = cache.createRegionFactory(RegionShortcut.LOCAL_PERSISTENT) .setDiskStoreName("testDestroy") .create("region"); region.close(); //This should now work ds.destroy(); }
private void cyclePoolAndRegion(Cache theCache, AttributesFactory regionFactory, PoolFactory poolFactory, String poolName) throws CacheException { long start = this.statistics.startConnect(); Pool pool = poolFactory.create(poolName); ((PoolImpl)pool).acquireConnection(); RegionAttributes ratts = regionFactory.create(); Region theRegion = theCache.createRegion("RecycledRegion", ratts); theRegion.close(); pool.destroy(); this.statistics.endConnect(start, this.isMainWorkload, this.histogram); }
public void testTxSubRegion() throws Exception { AttributesFactory factory = new AttributesFactory(); factory.setScope(Scope.LOCAL); Region subRegion = cache.createRegion("local1", factory.create()) .createSubregion("sub1", factory.create()); checkOpRejection(subRegion, true, true); subRegion.close(); assertEquals(1 + SYSTEM_LISTENERS, cache.getResourceManager(false). getResourceListeners(ResourceType.HEAP_MEMORY).size()); //root region is still present }
public void testPutsRejectedSubRegion() throws Exception { AttributesFactory factory = new AttributesFactory(); factory.setScope(Scope.LOCAL); Region subRegion = cache.createRegion("local1", factory.create()) .createSubregion("sub1", factory.create()); checkOpRejection(subRegion, false, true); subRegion.close(); assertEquals(1 + SYSTEM_LISTENERS, cache.getResourceManager(false). getResourceListeners(ResourceType.HEAP_MEMORY).size()); //root region is still present }