@Override public MirrorType getMirrorType() { if (this.dataPolicy.isNormal() || this.dataPolicy.isPreloaded() || this.dataPolicy.isEmpty() || this.dataPolicy.withPartitioning()) { return MirrorType.NONE; } else if (this.dataPolicy.withReplication()) { return MirrorType.KEYS_VALUES; } else { throw new IllegalStateException( String.format("No mirror type corresponds to data policy %s", this.dataPolicy)); } }
@Override @SuppressWarnings("deprecation") public MirrorType getMirrorType() { if (this.dataPolicy.isNormal() || this.dataPolicy.isPreloaded() || this.dataPolicy.isEmpty() || this.dataPolicy.withPartitioning()) { return MirrorType.NONE; } else if (this.dataPolicy.withReplication()) { return MirrorType.KEYS_VALUES; } else { throw new IllegalStateException( String.format("No mirror type corresponds to data policy %s.", this.dataPolicy)); } }
@Override public MirrorType getMirrorType() { // checkReadiness(); if (this.dataPolicy.isNormal() || this.dataPolicy.isPreloaded() || this.dataPolicy.isEmpty() || this.dataPolicy.withPartitioning()) { return MirrorType.NONE; } else if (this.dataPolicy.withReplication()) { return MirrorType.KEYS_VALUES; } else { throw new IllegalStateException( String.format("No mirror type corresponds to data policy %s", this.dataPolicy)); } }
@Override public MirrorType getMirrorType() { if (this.getDataPolicy().isNormal() || this.getDataPolicy().isPreloaded() || this.getDataPolicy().isEmpty() || this.getDataPolicy().withPartitioning()) { return MirrorType.NONE; } else if (this.getDataPolicy().withReplication()) { return MirrorType.KEYS_VALUES; } else { throw new IllegalStateException( String.format("No mirror type corresponds to data policy %s", this.getDataPolicy())); } }
} else if (profile.dataPolicy.isPreloaded()) { preloaded.add(profile.getDistributedMember()); memberProfiles.put(profile.getDistributedMember(), profile);
if (this.dataPolicy.isEmpty()) s |= PROXY_MASK; if (this.dataPolicy.isPreloaded()) s |= PRELOADED_MASK;
} else if (dp.isNormal()) { dpString = NORMAL_DP; } else if (dp.isPreloaded()) { dpString = PRELOADED_DP; } else if (dp.isReplicate()) {
public void remoteTestPostSnapshot(String name, boolean isController, boolean isRoot) throws CacheException { assertTrue(preSnapshotRegion.isDestroyed()); try { preSnapshotRegion.get("0"); fail("Should have thrown a RegionReinitializedException"); } catch (RegionReinitializedException e) { // pass } LogWriter log = getCache().getLogger(); // get new reference to region Region postSnapshotRegion = isRoot ? getRootRegion(name) : getRootRegion().getSubregion(name); assertNotNull("Could not get reference to reinitialized region", postSnapshotRegion); boolean expectData = isController || postSnapshotRegion.getAttributes().getMirrorType().isMirrored() || postSnapshotRegion.getAttributes().getDataPolicy().isPreloaded(); log.info("region has " + postSnapshotRegion.keySet().size() + " entries"); assertEquals(expectData ? MAX_KEYS : 0, postSnapshotRegion.keySet().size()); // gets the data either locally or by netSearch assertEquals(new Integer(3), postSnapshotRegion.get("3")); // bug 33311 coverage if (expectData) { assertFalse(postSnapshotRegion.containsValueForKey("9")); assertTrue(postSnapshotRegion.containsKey("9")); } }
if (this.getDataPolicy().isPreloaded()) { GIIStatus ret_preload = iiop.getFromOne(advice.preloaded, false, advice, recoverFromDisk, recovered_rvv);
getDataPolicy().withReplication() || getDataPolicy().isPreloaded(), getAttributes().getDataPolicy().withPersistence(), this.stopper);