public static void dropReservoirRegionForSampleTable(PartitionedRegion reservoirRegion) { if (reservoirRegion != null) { reservoirRegion.destroyRegion(null); } }
public void destroyRegion(Object callbackArgument) throws CacheWriterException, TimeoutException { this.proxy.destroyRegion(callbackArgument); }
public void destroyRegion(Object callbackArgument) throws CacheWriterException, TimeoutException { this.proxy.destroyRegion(callbackArgument); }
@Override protected boolean operateOnPartitionedRegion(DistributionManager dm, PartitionedRegion pr, long startTime) throws CacheException { // This call has come to an uninitialized region. if(pr == null || !pr.isInitialized()) { return true; } org.apache.logging.log4j.Logger logger = LogService.getLogger(); if (logger.isTraceEnabled(LogMarker.DM)) { logger.trace("DestroyRegionOnDataStore operateOnRegion: " + pr.getFullPath()); } pr.destroyRegion(callbackArg); return true; }
public void run2() throws CacheException { Cache cache = getCache(); PartitionedRegion pr = (PartitionedRegion)cache.getRegion(Region.SEPARATOR + prPrefix); assertNotNull(pr); pr.destroyRegion(); } });
public void run2() throws CacheException { Cache cache = getCache(); PartitionedRegion pr = (PartitionedRegion)cache.getRegion(Region.SEPARATOR + PR_PREFIX + "1"); assertNotNull("Null region is " + pr.getName(),pr); pr.destroyRegion(); pr = (PartitionedRegion)cache.getRegion(Region.SEPARATOR + PR_PREFIX ); assertNotNull("Null region is " + pr.getName(),pr); pr.destroyRegion(); } };
public void run2() { Cache cache = getCache(); PartitionedRegion pr = (PartitionedRegion)cache .getRegion(Region.SEPARATOR + "testLocalMaxMemoryInPartitionedRegion0"); assertNotNull("Name of region : " + pr.getName(), pr); pr.destroyRegion(); } };
public void test026CloseDestroy() throws Exception { logger.fine("Getting inside testCloseDestroy"); PartitionedRegion pr = (PartitionedRegion)PartitionedRegionTestHelper .createPartitionedRegion("testCloseDestroy", String.valueOf(200), 0); pr.close(); pr = (PartitionedRegion)PartitionedRegionTestHelper .createPartitionedRegion("testCloseDestroy", String.valueOf(200), 0); try { pr.destroyRegion(); } catch (RegionDestroyedException expected) { fail("testCloseDestroy(): Can not destroy a newly created region."); } pr = (PartitionedRegion)PartitionedRegionTestHelper .createPartitionedRegion("testCloseDestroy", String.valueOf(200), 0); if (logger.fineEnabled()) { logger .fine("PartitionedRegionSingleNodeOperationsJUnitTest - testCloseDestroy() Completed successfully ... "); } }
@Override protected boolean operateOnPartitionedRegion(DistributionManager dm, PartitionedRegion pr, long startTime) throws CacheException { // This call has come to an uninitialized region. if(pr == null || !pr.isInitialized()) { return true; } LogWriterI18n l = pr.getCache().getLoggerI18n(); if (DistributionManager.VERBOSE) { l.fine("DestroyRegionOnDataStore operateOnRegion: " + pr.getFullPath()); } pr.destroyRegion(callbackArg); return true; }
/** * This method is used to test the isDestroyed() functionality. * */ public void test012IsDestroyed() throws Exception { String regionName = "testIsDestroyed"; PartitionedRegion pr = (PartitionedRegion)PartitionedRegionTestHelper .createPartitionedRegion(regionName, String.valueOf(200), 0); pr.put(new Integer(1), new Integer(1)); pr.get(new Integer(1)); if (pr.isDestroyed()) { fail("PartitionedRegionSingleNodeOperationsJUnitTest:testIsDestroyed(): Returns true in isDestroyed method, before the region is destroyed"); } pr.destroyRegion(); if (!pr.isDestroyed()) { fail("PartitionedRegionSingleNodeOperationsJUnitTest:testIsDestroyed(): " + "Returns false in isDestroyed method, after the region is destroyed"); } if (logger.fineEnabled()) { logger .fine("PartitionedRegionSingleNodeOperationsJUnitTest - testIsDestroyed() Completed successfully ... "); } }
.getRegions(); for (PartitionedRegion queueRegion : queueRegions) { queueRegion.destroyRegion();
.getRegions(); for (PartitionedRegion queueRegion : queueRegions) { queueRegion.destroyRegion();
pr.destroyRegion(); logger.info("JDEBUG 2");
pr = (PartitionedRegion)cache.createRegion(regionname, ra); } finally { pr.destroyRegion(); pr.destroyRegion(); pr.destroyRegion(); redundancy = -5; try {
fail(); pr.destroyRegion();
fail(); pr.destroyRegion();
} finally { if (pr != null) { pr.destroyRegion();
&& (lcc = tran.getLanguageConnectionContext()) != null && !lcc.isConnectionForRemote()) { ((PartitionedRegion)this.region).destroyRegion(null);
&& (lcc = tran.getLanguageConnectionContext()) != null && !lcc.isConnectionForRemote()) { ((PartitionedRegion)this.region).destroyRegion(null);