public void run() { region.put(new Long(1), "2"); } }
/** * @since 5.0 */ public Object setValue(Object arg0) { return this.localRegion.put(this.getKey(), arg0); }
/** * @since 5.0 */ public Object setValue(Object value) { return this.localRegion.put(this.getKey(), value); }
/** * @since 5.0 */ public Object setValue(Object arg0) { return put(this.getKey(), arg0); } }
public void run2() throws CacheException { LocalRegion region = (LocalRegion) getRootRegion().getSubregion(name); // DiskRegion dr = region.getDiskRegion(); // LRUStatistics lruStats = getLRUStats(region); for (int i = 0; i < 10; i++) { region.put(new Integer(i), new int[250]); } } });
public Object setValue(Object arg) { Object returnValue = region.put(this.getKey(), arg); this.regionEntry.setCachedValue(arg); return returnValue; }
public void run2() throws CacheException { LocalRegion region = (LocalRegion) getRootRegion().getSubregion(name); region.put("key-1", "key-1-update", "key-1-update"); } });
public void run() { Cache cache = getCache(); LocalRegion region = (LocalRegion) cache.getRegion("region"); // cache.getLogger().info("DEBUG about to put(" + key + ", " + value + ")"); region.put(key, value); } });
public Object setValue(Object arg) { Object returnValue = region.put(this.getKey(), arg); this.regionEntry.setCachedValue(arg); return returnValue; }
public void run2() throws CacheException { LocalRegion region = (LocalRegion) getRootRegion().getSubregion(name); region.put("key-1", "vm1-key-1-again"); region.put("key-2", "vm1-key-2-again"); // Verify that no updates occurred to this region assertEquals(region.getEntry("key-1").getValue(), "vm1-key-1-again"); assertEquals(region.getEntry("key-2").getValue(), "vm1-key-2-again"); } });
public void run2() throws CacheException { LocalRegion region = (LocalRegion) getRootRegion().getSubregion(name); region.put("key-1", "vm2-key-1-again"); region.put("key-2", "vm2-key-2-again"); // Verify that no updates occurred to this region assertEquals(region.getEntry("key-1").getValue(), "vm2-key-1-again"); assertEquals(region.getEntry("key-2").getValue(), "vm2-key-2-again"); } });
public void run2() throws CacheException { LocalRegion region = (LocalRegion) getRootRegion().getSubregion(name); region.put("key-1", "vm1-key-1"); region.put("key-2", "vm1-key-2"); // Verify that no invalidates occurred to this region assertEquals(region.getEntry("key-1").getValue(), "vm1-key-1"); assertEquals(region.getEntry("key-2").getValue(), "vm1-key-2"); } });
public void run() { LocalRegion lr = (LocalRegion)getCache().getRegion(REGION_NAME); lr.put(key, value); long region_version = getRegionVersionForMember(lr.getVersionVector(), memberID, false); assertEquals(regionVersionForThisOp, region_version); } };
public void run2() throws CacheException { LocalRegion region = (LocalRegion) getRootRegion().getSubregion(name); // DiskRegion dr = region.getDiskRegion(); LRUStatistics lruStats = getLRUStats(region); int i; for (i = 0; lruStats.getEvictions() <= 0; i++) { region.put(new Integer(i), new short[250]); } assertTrue(i > 5); } });
public void run() { try { RegionFactory f = getCache().createRegionFactory(getRegionAttributes()); CCRegion = (LocalRegion)f.create(name); CCRegion.put("cckey0", "ccvalue"); CCRegion.put("cckey0", "ccvalue"); // version number will end up at 4 } catch (CacheException ex) { fail("While creating region", ex); } } };
public void run() { try { RegionFactory f = getCache().createRegionFactory( getRegionAttributes()); CCRegion = (LocalRegion) f.create(name); CCRegion.put("cckey0", "ccvalue"); CCRegion.put("cckey0", "ccvalue"); // version number will end up at 4 } catch (CacheException ex) { fail("While creating region", ex); } } };
public void run() { CCRegion.getRegionMap().removeEntry("cckey0", CCRegion.getRegionEntry("cckey0"), true); if (CCRegion.getRegionEntry("ckey0") != null) { fail("expected removEntry to remove the entry from the region's map"); } CCRegion.put("cckey0", "updateAfterReap"); } });
public void run2() throws CacheException { LocalRegion region = (LocalRegion) getRootRegion().getSubregion(name); // DiskRegion dr = region.getDiskRegion(); LRUStatistics lruStats = getLRUStats(region); for (int i = 0; lruStats.getEvictions() < 10; i++) { getLogWriter().info("Put " + i); region.put(new Integer(i), new byte[1]); } assertEquals(10, lruStats.getEvictions()); } });
@Override public Object call() throws Exception { LocalRegion r = (LocalRegion)getCache().createRegionFactory( RegionShortcut.REPLICATE).create(regionName); r.put("key", "value"); return r.getRegionEntry("key").getVersionStamp().asVersionTag(); } });