@Override public void run() { r.destroy(key); } }, expiration, TimeUnit.SECONDS);
@Override public void run() { r.destroy(key); } }, expiration, TimeUnit.SECONDS);
@Override public void run() { r.destroy(key); } }, expiration, TimeUnit.SECONDS);
public void run2() throws CacheException { Region r = getRootRegion("ProxyDUnitTest"); r.destroy("c"); } });
public void run2() throws CacheException { Region region = getRootRegion().getSubregion(name); for (int i = 0; i < 10; i++) { region.destroy(new Integer(i), callbackArg); } } });
public void run2() throws CacheException { Region region = getRootRegion().getSubregion(name); region.destroy(key); } });
@Override public Object call() throws Exception { getRootRegion().getSubregion(regionName).destroy("oh4"); return null; } });
public void run2() throws CacheException { Region region1 = getRootRegion().getSubregion(regions[0]); for (int i = 1; i <= size; i++) { region1.destroy(KEY+i); } } });
public void run2() throws CacheException { Region region = getRootRegion().getSubregion(name); region.destroy(key); } });
public void run2() throws CacheException { Cache cache = getCache(); System.out.println("TEST CQ MAX_QUERY_EXECUTION_TIME is set to: " + ((GemFireCacheImpl)cache).TEST_MAX_QUERY_EXECUTION_TIME); Region region1 = getRootRegion().getSubregion(cqDUnitTest.regions[0]); for (int i = 1; i <= 5; i++) { region1.destroy( CqQueryDUnitTest.KEY + i); } } });
public static void destroy() { try { Region r = cache.getRegion("/" + REGION_NAME); assertNotNull(r); r.destroy("key-1"); } catch (Exception ex) { fail("test failed due to exception in destroy ", ex); } }
public void run2() throws CacheException { Region region1 = getRootRegion().getSubregion(regionName); for (int i = 1; i <= size; i++) { region1.destroy(KEY+i); } getLogWriter().info("### Number of Entries In Region after Delete :" + region1.keys().size()); }
public void run() { Cache cache = getCache(); Region region = cache.getRegion(PR_REGION_NAME); for(int i =startKey; i < endKey; i++) { region.destroy(i); region.create(i, null); region.invalidate(i); } } };
@Override public void run2() throws CacheException { ClientCache clientCache = ClientCacheFactory.getAnyInstance(); // Do a put in region. Region r = clientCache.getRegion(name); // Destroy one of the values. clientCache.getLogger().fine("Destroying the value"); r.destroy(1); } });
public Object call() throws Exception { Region custRegion = getCache().getRegion(CUSTOMER); CacheTransactionManager mgr = getGemfireCache().getTxManager(); mgr.commit(); assertEquals(expectedCustomer, custRegion.get(expectedCustId)); custRegion.destroy(expectedCustId); return null; } });
public Object call() throws Exception { Region custRegion = getCache().getRegion(CUSTOMER); CacheTransactionManager mgr = getGemfireCache().getTxManager(); mgr.commit(); assertEquals(expectedCustomer, custRegion.get(expectedCustId)); custRegion.destroy(expectedCustId); return null; } };
public void run2() throws CacheException { Region region = getRootRegion().getSubregion(name); region.destroy(key, arg); assertEquals(1, region.size()); if (region.getAttributes().getEnableOffHeapMemory() && !(region instanceof PartitionedRegion)) { GemFireCacheImpl gfc = (GemFireCacheImpl) getCache(); SimpleMemoryAllocatorImpl ma = (SimpleMemoryAllocatorImpl) gfc.getOffHeapStore(); assertEquals(1, ma.getStats().getObjects()); } } });
public void run() { getCache().getLogger().fine(MemoryThresholdsOffHeapDUnitTest.this.addExpectedBelow); getRootRegion().getSubregion(regionName).destroy(1); getCache().getLogger().fine(MemoryThresholdsOffHeapDUnitTest.this.removeExpectedBelow); return; } });
private static void makeRoom(int percent) { Log.getLogWriter().info("Destroying " + percent + " percent of entries in each region"); Set<Region<?, ?>> regionSet = getAllRegions(); for (Region aRegion: regionSet) { int numToDestroy = (int) (aRegion.size() * (percent * 0.01)); Log.getLogWriter().info("Destroying " + numToDestroy + " in " + aRegion.getFullPath() + " of size " + aRegion.size()); for (Object key: aRegion.keySet()) { aRegion.destroy(key); } } }
public void testRegisterInterestResponse_Destroyed_Invalid() throws Exception { Region r = cache.getRegion(Region.SEPARATOR + REGION_NAME); r.put(KEY, "DummyValue"); r.destroy(KEY); server1.invoke(DurableResponseMatrixDUnitTest.class, "invalidateEntry", new Object[] { KEY }); r.registerInterest(KEY, InterestResultPolicy.KEYS_VALUES); assertFalse(r.containsValueForKey(KEY)); // invalidate assertEquals(null, r.getEntry(KEY).getValue()); // invalidate }