public void run() { region.create("key1", "value1"); } });
public void create(Object key, Object value, Object aCacheWriterParam) throws TimeoutException, EntryExistsException, CacheWriterException { this.region.create(key, value, aCacheWriterParam); }
public void run2() throws CacheException { Region r = getRootRegion("ProxyDUnitTest"); r.create("c", "v"); } });
public void run2() throws CacheException { Region region = createRegion(name); region.create(key, null); } };
@Override public void run2() throws CacheException { Region region = getRootRegion().getSubregion(name); for (int i = 0; i < 10; i++) { region.create(new Integer(i), new Integer(i)); } } });
public void run2() throws CacheException { Region region = getRootRegion().getSubregion(name); for (int i = 0; i < 10; i++) { region.create(new Integer(i), "new" + i); } } });
public void run2() throws CacheException { Region region1 = getRootRegion().getSubregion(regionName1); // create it invalid region1.create("key-string-1", null); } });
public static void createKeys(String[] keys) { Region region = cache.getRegion(REGION_NAME); for (int i = 0; i < keys.length; i++) { region.create(keys[i], new DeltaTestImpl()); } }
public Object doInGemfire(Region region) throws GemFireCheckedException, GemFireException { region.create(new PersistedResourceKey(pResource.getKey()), pResource); return null; } });
public static void create() throws Exception { Region r1 = cache.getRegion(Region.SEPARATOR + REGION_NAME); DeltaTestImpl test = new DeltaTestImpl(); r1.create("KEY", test); test = new DeltaTestImpl(); test.setIntVar(NEW_INT); r1.create("KEY1",test); test = new DeltaTestImpl(); test.setStr(NEW_STR); r1.create("KEY2",test); }
public void run() { Region region = getRootRegion().getSubregion(regionName); for (int i = 0; i < 10; i ++) { String st = Integer.toString(i); PoisonedKey pk = new PoisonedKey(st); region.create(pk, st); } } });
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); } } };
public void run2() throws CacheException { AttributesFactory af = new AttributesFactory(); af.setScope(Scope.DISTRIBUTED_ACK); Region r1 = createRootRegion("r1", af.create()); r1.create("key", "value"); } });
public Object call() throws Exception { final Region r = getCache().getRegion(REP_REG_NAME); final Region pr = getCache().getRegion(PR_REG_NAME); r.create("createKey", null); pr.create("createKey", null); assertNull(r.putIfAbsent("putAbsentKey", null)); assertNull(pr.putIfAbsent("putAbsentKey", null)); return null; } });
private void createInRegion(int i, Region region) { Object key = ObjectHelper.createName(this.keyType, i); String objectType = CachePerfPrms.getObjectType(); Object val = ObjectHelper.createObject(objectType, i); long start = this.statistics.startCreate(); region.create(key, val); this.statistics.endCreate(start, this.isMainWorkload, this.histogram); } }
public void run() { try { Region root = getRootRegion("root"); Region rgn = root.getSubregion(rgnName); rgn.create("key", null); getSystem().getLogWriter().info("testDistributedCReate: Created Key"); } catch (CacheException e) { fail("While creating region", e); } } };
public void afterWritingBytes() { region.getCache().getLogger().info("in afterWritingBytes didClear=" + didClear); if (!didClear) return; CacheObserverHolder.setInstance(new CacheObserverAdapter()); // now that the flusher finished the async create of VALUE1 // do another create region.create("KEY", "VALUE2"); signalCompletion(); } public void goingToFlush() {
public void run() { try { Region root = getRootRegion("root"); Region rgn = root.getSubregion(rgnName2); rgn.create("key", null); getSystem().getLogWriter().info("testTXMultiRegion: Created Key"); } catch (CacheException e) { fail("While creating region", e); } } };
protected void populateRegion(Region aRegion) { int numVms = TestConfig.getInstance().getTotalVMs() - 1; for (int i = 0; i < numVms; i++) { Object key = NameFactory.getNextPositiveObjectName(); BaseValueHolder anObj = getValueForKey(key); Log.getLogWriter().info("addEntry: calling create for key " + key + ", object " + TestHelper.toString(anObj) + ", region is " + aRegion.getFullPath()); aRegion.create(key, anObj); Log.getLogWriter().info("addEntry: done creating key " + key); } }