public void run() { Cache cache = getCache(); cache.close(); } };
public void run() { Cache cache = getCache(); cache.close(); } };
public void run() { Cache cache = getCache(); Region region = cache.getRegion(regionName); for(int i =startKey; i < endKey; i++) { assertEquals("For key " + i, value, region.get(i)); } } };
public void run() { Cache cache = getCache(); Region region = cache.getRegion(PR_REGION_NAME); region.close(); } };
public Object call() throws Exception { Cache cache = getCache(); return cache.getDistributedSystem().getDistributedMember(); } };
public void run() { Cache cache = getCache(); Region region = cache.getRegion(PR_REGION_NAME); for(int i =startKey; i < endKey; i++) { region.destroy(i); } } };
public void run() { Cache cache = getCache(); Region region = cache.getRegion(PR_REGION_NAME); region.localDestroyRegion(); } };
public void run() { Cache cache = getCache(); Region region = cache.getRegion(PR_REGION_NAME); region.localDestroyRegion(); } };
public void run() { Cache cache = getCache(); final Region region = cache.getRegion(regionName); waitForCriterion(new WaitCriterion() { public boolean done() { PartitionRegionInfo info = PartitionRegionHelper.getPartitionRegionInfo(region); return info.getActualRedundantCopies() == expectedRedundancy; } public String description() { PartitionRegionInfo info = PartitionRegionHelper.getPartitionRegionInfo(region); return "Did not reach expected redundancy " + expectedRedundancy + " redundancy info = " + info.getActualRedundantCopies(); } }, 30 * 1000, 100, true); } });
public Object call() throws Exception { Cache cache = getCache(); PartitionedRegion region = (PartitionedRegion) cache.getRegion(regionName); return new TreeSet<Integer>(region.getDataStore().getAllLocalPrimaryBucketIds()); } };
public Object call() throws Exception { Cache cache = getCache(); PartitionedRegion region = (PartitionedRegion) cache.getRegion(regionName); return new TreeSet<Integer>(region.getDataStore().getAllLocalBucketIds()); } };
public void run() { Cache cache = getCache(); PartitionedRegion region = (PartitionedRegion) cache.getRegion(PR_REGION_NAME); region.getDataStore().moveBucket(bucketId, sourceId,false); } };
public void run() { Cache cache = getCache(); getLogWriter().info("creating data in " + regionName); Region region = cache.getRegion(regionName); for(int i =startKey; i < endKey; i++) { region.put(i, value); } } };
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 Object call() { Cache cache = getCache(); PartitionedRegion region = (PartitionedRegion) cache.getRegion(PR_REGION_NAME); PersistenceAdvisor advisor = region.getRegionAdvisor().getBucket(bucketId).getPersistenceAdvisor(); return advisor.getPersistentID(); } });
public void run() { Cache cache = getCache(); PartitionedRegion region = (PartitionedRegion) cache.getRegion(PR_REGION_NAME); DiskRegion disk = region.getRegionAdvisor().getBucket(bucketId).getDiskRegion(); if(recoveredLocally) { assertEquals(0, disk.getStats().getRemoteInitializations()); assertEquals(1, disk.getStats().getLocalInitializations()); } else { assertEquals(1, disk.getStats().getRemoteInitializations()); assertEquals(0, disk.getStats().getLocalInitializations()); } } });
public void run() { Cache cache = getCache(); RebalanceFactory rf = cache.getResourceManager().createRebalanceFactory(); try { rf.start().getResults(); } catch (Exception e) { fail("interupted", e); } } });
public Object call() throws Exception { Cache cache = getCache(); PartitionedRegion region = (PartitionedRegion) cache.getRegion(PR_REGION_NAME); return region.getRegionAdvisor().getProxyBucketArray()[bucketId] .getPersistenceAdvisor().getPersistedOnlineOrEqualMembers(); } };
public Object call() throws Exception { Cache cache = getCache(); PartitionedRegion region = (PartitionedRegion) cache.getRegion(PR_REGION_NAME); return region.getRegionAdvisor().getProxyBucketArray()[bucketId] .getPersistenceAdvisor().getMembershipView().getOfflineMembers(); } };
public void run() { Cache cache = getCache(); PartitionedRegion region = (PartitionedRegion) cache.getRegion(PR_REGION_NAME); DiskRegion disk = region.getRegionAdvisor().getBucket(bucketId).getDiskRegion(); for(PersistentMemberID id : disk.getOnlineMembers()) { disk.memberOfflineAndEqual(id); } for(PersistentMemberID id : disk.getOfflineMembers()) { disk.memberOfflineAndEqual(id); } cache.close(); } });