public Object call() throws Exception { Region<Object, Object> custRegion = getCache().getRegion(CUSTOMER); assertEquals(expectedCustomerUpdate, custRegion.get(expectedCustId)); return null; } });
public Object call() throws Exception { Region refRegion = getCache().getRegion(D_REFERENCE); assertEquals("dawg",refRegion.get("sup")); return null; } });
public Object call() throws Exception { Region refRegion = getCache().getRegion(D_REFERENCE); OriginRemoteRRWriter w = (OriginRemoteRRWriter)refRegion .getAttributes().getCacheWriter(); assertEquals(1, w.fireC); assertEquals(1, w.fireD); assertEquals(1, w.fireU); return null; } });
public Object call() throws Exception { Region<CustId, Customer> custRegion = getCache().getRegion(CUSTOMER); Region<Object, Object> rr = getCache().getRegion(D_REFERENCE); assertTrue(getCustomerSet(6).equals(custRegion.values())); assertTrue(getCustomerSet(6).equals(rr.values())); return null; } });
public Object call() throws Exception { Region<Object, Object> custRegion = getCache().getRegion(CUSTOMER); Region<Object, Object> orderRegion = getCache().getRegion(ORDER); Region<Object, Object> refRegion = getCache().getRegion(D_REFERENCE); assertEquals(expectedCustomer, custRegion.get(expectedCustId)); assertEquals(expectedOrder, orderRegion.get(expectedOrderId)); assertEquals(expectedCustomerUpdate, refRegion.get(expectedCustId)); custRegion.put(expectedCustId, expectedCustomerUpdate); assertEquals(expectedCustomerUpdate, custRegion.get(expectedCustId)); return null; } });
@Override public Object call() throws Exception { getCache().createRegionFactory(RegionShortcut.REPLICATE).create( regionName); return null; } });
public Object call() throws Exception { Region<CustId, Customer> custRegion = getCache().getRegion(CUSTOMER); getCache().getCacheTransactionManager().begin(); CustId custId = new CustId(1); Customer customer = new Customer("customerNew", "addressNew"); custRegion.put(custId, customer); getCache().getCacheTransactionManager().commit(); return null; } });
public Object call() throws Exception { Region<CustId, Customer> custRegion = getCache().getRegion(CUSTOMER); Region<OrderId, Order> orderRegion = getCache().getRegion(ORDER); TXManagerImpl mgr = getGemfireCache().getTxManager(); mgr.begin(); put10Entries(custRegion, orderRegion); return mgr.getTransactionId(); } });
@Override public Object call() throws Exception { getCache().createRegionFactory(RegionShortcut.REPLICATE) .create(regionName); Region n = getCache().createRegionFactory(RegionShortcut.REPLICATE) .create(regionNameNormal); n.put("key", "value"); n.put("key", "value1"); n.put("key", "value2"); return null; } });
public Object call() throws Exception { Region cust = getCache().getRegion(D_REFERENCE); cust.getAttributesMutator().addCacheListener(new OneUpdateCacheListener()); return null; } });
public Object call() throws Exception { int port = AvailablePort.getRandomAvailablePort(AvailablePort.SOCKET); CacheServer s = getCache().addCacheServer(); s.setPort(port); s.start(); return port; } });
public Object call() throws Exception { Region<CustId, Customer> custRegion = getCache().getRegion(CUSTOMER); custRegion.getAttributesMutator().addCacheListener(new ListenerInvocationCounter()); return null; } };
public Object call() throws Exception { Region cust = getCache().getRegion(D_REFERENCE); OneDestroyAndThenOneCreateCacheWriter wri = (OneDestroyAndThenOneCreateCacheWriter)cust.getAttributes().getCacheWriter(); wri.checkSuccess(); 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 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 { AttributesFactory<Integer, String> af = new AttributesFactory<Integer, String>(); af.setScope(Scope.DISTRIBUTED_ACK); af.setDataPolicy(DataPolicy.EMPTY); af.setConcurrencyChecksEnabled(getConcurrencyChecksEnabled()); getCache().createRegionFactory(af.create()).create(EMPTY_REGION); af.setDataPolicy(DataPolicy.REPLICATE); getCache().createRegionFactory(af.create()).create(D_REFERENCE); return null; } });
@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(); } });
public Object call() throws Exception { Region cust = getCache().getRegion(CUSTOMER); TXManagerImpl mgr = getGemfireCache().getTxManager(); mgr.begin(); cust.put(new CustId(6), new Customer("customer6", "address6")); return null; } });
public Object call() throws Exception { Region cust = getCache().getRegion(D_REFERENCE); cust.put("meow","this is a meow, deal with it"); cust.getAttributesMutator().addCacheListener(new OneUpdateCacheListener()); cust.getAttributesMutator().setCacheWriter(new OneDestroyAndThenOneCreateCacheWriter()); return null; } });