@Override public Region getSubregion(String path) { Region region = this.realRegion.getSubregion(path); return region != null ? new ProxyRegion(this.proxyCache, region) : null; }
@Override public void run2() throws CacheException { assertThat(getRootRegion().getSubregion(name)).isNotNull(); } };
@Override public void run2() throws CacheException { Region<Object, Object> region = getRootRegion().getSubregion(name); region.invalidateRegion(getSystem().getDistributedMember()); } });
@Override public void run2() throws CacheException { Region<Object, Object> region = getRootRegion().getSubregion(name); assertThat(region.get(key)).isEqualTo(value); assertThat(loader().wasInvoked()).isTrue(); } });
@Override public void run2() throws CacheException { Region<Object, Object> region = getRootRegion().getSubregion(name); assertThat(region.getEntry(key1)).isNotNull(); assertThat(region.getEntry(key2)).isNotNull(); assertThat(region.getEntry(key3)).isNotNull(); } }));
@Override public void run2() throws CacheException { Region<Object, Object> region = getRootRegion().getSubregion(name); region.localDestroyRegion(); } });
@Override public void run2() throws CacheException { Region<?, ?> region = getRootRegion().getSubregion(name); region.destroy(key); flushIfNecessary(region); } });
@Override public void run2() throws CacheException { Region<Object, Object> region = getRootRegion().getSubregion(name); region.localDestroy(key); } });
@Override public void run2() throws CacheException { Region<Object, Object> region = getRootRegion().getSubregion(name); region.destroyRegion(getSystem().getDistributedMember()); } });
@Override public void run2() throws CacheException { Region<Object, Object> region = getRootRegion().getSubregion(name); // expected entry count (subtract entries destroyed) int entryCount = NB1_NUM_ENTRIES + 200 - NB1_NUM_ENTRIES / 6; int actualCount = region.entrySet(false).size(); if (actualCount == NB1_NUM_ENTRIES + 200) { // entries not destroyed, dump entries that were supposed to have been destroyed dumpDestroyedEntries(region); } assertThat(actualCount).isEqualTo(entryCount); }
@Override public void run2() throws CacheException { Region<Object, Object> region = getRootRegion().getSubregion(name); region.destroyRegion(); assertThat(writer().wasInvoked()).isTrue(); } });
@Override public void run2() throws CacheException { Region<Object, Object> region = getRootRegion().getSubregion(name); Object got = region.get(key); assertThat(got).isEqualTo(value); } });
@Override public void run2() throws CacheException { Region<Object, Object> region = getRootRegion().getSubregion(name); Region.Entry entry = region.getEntry(key); assertThat(entry).isNotNull(); assertThat(entry.getValue()).isEqualTo(newValue); } });
@Override public void run2() throws CacheException { Region<Object, Object> region = getRootRegion().getSubregion(name); region.invalidate(key); flushIfNecessary(region); } };
@Override public void run2() throws CacheException { Region<Object, Object> region = getRootRegion().getSubregion(name); region.put(key, newValue); assertThat(writer().wasInvoked()).isTrue(); } });
@Override public void run2() throws CacheException { Region<Object, Object> region = getRootRegion().getSubregion(name); DSIntWrapper.DSIntWrapperInstantiator inst = new DSIntWrapper.DSIntWrapperInstantiator(); assertThat(InternalInstantiator.getInstantiator(inst.getId())).isNotNull(); DSIntWrapper value = (DSIntWrapper) region.get(key); assertThat(value).isNotNull(); assertThat(value.intValue).isEqualTo(intValue); } };
@Override public void run2() { Region rgn1 = getRootRegion().getSubregion(rgnName); CacheTransactionManager txMgr2 = getCache().getCacheTransactionManager(); MyTransactionListener<String, String> tl = firstTransactionListenerFrom(txMgr2); assertThat(rgn1.containsKey("key")).isTrue(); assertThat(rgn1.containsValueForKey("key")).isTrue(); assertThat(rgn1.getEntry("key").getValue()).isEqualTo("value1"); tl.assertCounts(2, 0, 0, 0); // nothing happened remotely } });
@Override public void run2() throws CacheException { Region<Object, Object> region = getRootRegion().getSubregion(name); region.put(key, newValue); flushIfNecessary(region); } });
@Override public void run2() throws CacheException { final Region<Object, Object> region = getRootRegion().getSubregion(name); await("never saw expire of " + key) .until(() -> region.getEntry(key) == null); assertThat(destroyListener.waitForInvocation(555)).isTrue(); assertThat(((DestroyListener) destroyListener).eventIsExpiration).isTrue(); } });
@Override public void run() { Region<String, String> rgn = getRootRegion().getSubregion(rgnName); if (!rgn.getAttributes().getScope().isAck()) { await().untilAsserted(() -> { checkCommitAndNoData(rgn); }); } else { checkCommitAndNoData(rgn); } }