public boolean done() { return region.isDestroyed(); } public String description() {
public boolean keyExistsInLocalMonitoringRegion(String key) { if (localMonitoringRegion != null && !localMonitoringRegion.isDestroyed()) { // We want to just check locally without sending a message to the manager. // containsKey does this. return localMonitoringRegion.containsKey(key); } else { return true; // so caller will think he does not need to do a putAll } }
public void run2() throws CacheException { //DebuggerSupport.waitForJavaDebugger(getLogWriter(), " about to create region"); Region region = createRegion(name); assertTrue(!region.isDestroyed()); Region root = region.getParentRegion(); assertTrue(!root.isDestroyed()); } };
/** * uses putAll operation of region * * @param objectMap * Object Map containing key-value operations */ public void putAllInLocalMonitoringRegion( Map<String, FederationComponent> objectMap) { if (localMonitoringRegion != null && !localMonitoringRegion.isDestroyed()) { localMonitoringRegion.putAll(objectMap); } }
public boolean keyExistsInLocalMonitoringRegion(String key) { if (localMonitoringRegion != null && !localMonitoringRegion.isDestroyed()) { // We want to just check locally without sending a message to the manager. // containsKey does this. try { return localMonitoringRegion.containsKey(key); } catch (RegionDestroyedException rde) { return true; // so caller will think he does not need to do a putAll } } else { return true; // so caller will think he does not need to do a putAll } }
/** * put an entry in local monitoring region * * @param name * MBean name * @param data * The value part of the Map */ public void putEntryInLocalMonitoringRegion(String name, Object data) { if (localMonitoringRegion != null && !localMonitoringRegion.isDestroyed()) { localMonitoringRegion.put(name, data); } }
public void run2() throws CacheException { Region root = getRootRegion(); assertTrue(!root.isDestroyed()); Region region = root.getSubregion(name); assertTrue(!region.isDestroyed()); //DebuggerSupport.waitForJavaDebugger(getLogWriter(), " about to get"); assertEquals(value, region.getEntry(key).getValue()); } };
public void run2() throws CacheException { Region root = getRootRegion(); assertTrue(!root.isDestroyed()); Region region = root.getSubregion(name); assertTrue(!region.isDestroyed()); assertNull(region.getEntry(key)); } };
public void run2() throws CacheException { //DebuggerSupport.waitForJavaDebugger(getLogWriter(), " about to put"); Region region = getRootRegion().getSubregion(name); region.put(key, value); assertTrue(!region.isDestroyed()); assertTrue(!region.getParentRegion().isDestroyed()); } };
@Override public void close() { Region r = getRegion(); if (r != null && !r.isDestroyed()) { try { r.close(); } catch (RegionDestroyedException e) { } } }
@Override public void close() { Region r = getRegion(); if (r != null && !r.isDestroyed()) { try { r.close(); } catch (RegionDestroyedException e) { } } }
@Override public void close() { Region r = getRegion(); if (r != null && !r.isDestroyed()) { try { r.close(); } catch (RegionDestroyedException e) { } } }
@Override public void close() { Region r = getRegion(); if (r != null && !r.isDestroyed()) { try { r.close(); } catch (RegionDestroyedException e) { } } }
@Override public void close() { Region r = getRegion(); if (r != null && !r.isDestroyed()) { try { r.close(); } catch (RegionDestroyedException e) { } } }
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 run2() { Cache cache = getCache(); Region pr = cache.getRegion(rName); assertNotNull("Region already destroyed.", pr); pr.destroyRegion(); assertTrue("Region isDestroyed false", pr.isDestroyed()); assertNull("Region not destroyed.", cache.getRegion(rName)); } });
/** Close the region and re-open for next round of ops */ static protected synchronized void closeAndOpenRegion() { if (!testInstance.aRegion.isDestroyed()) { Log.getLogWriter().info("Closing region " + testInstance.aRegion.getFullPath() + " with " + testInstance.aRegion.keys().size() + " entries"); testInstance.aRegion.close(); testInstance.createRegion(); // re-create and reset aRegion } else { Log.getLogWriter().info("Not closing region; it has been closed by another thread"); } }
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(); } }
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(); } }