protected static boolean isRemoteAccessor(CacheProfile profile) { if (!profile.dataPolicy.withStorage()) { return true; } if (profile.isPartitioned) { PartitionProfile prProfile = (PartitionProfile) profile; if (prProfile.localMaxMemory == 0) { return true; } } return false; }
/** * Return false if it will never store entry ekys and values locally; otherwise return true. */ protected boolean hasStorage() { return this.getDataPolicy().withStorage(); }
boolean isEmptyDataPolicy() { // If the region is a Replicated Region or if it is a PR with just // itself as a member then we should go with Derby's Activation Object return !this.region.getDataPolicy().withStorage(); }
boolean isEmptyDataPolicy() { // If the region is a Replicated Region or if it is a PR with just // itself as a member then we should go with Derby's Activation Object return !this.region.getDataPolicy().withStorage(); }
/** * Return true if cached or allEvents */ public boolean cachedOrAllEvents() { return this.dataPolicy.withStorage() || allEvents(); } /**
/** * Return true if cached or allEvents */ public final boolean cachedOrAllEvents() { return this.dataPolicy.withStorage() || allEvents(); }
boolean isEmptyDataPolicy() { // If the region is a Replicated Region or if it is a PR with just // itself as a member then we should go with Derby's Activation Object return !this.region.getDataPolicy().withStorage(); }
public boolean include(Profile profile) { assert profile instanceof CacheProfile; CacheProfile cp = (CacheProfile)profile; DataPolicy dp = cp.dataPolicy; return dp.withReplication() || (cp.allEvents() && (dp.withStorage() || cp.hasCacheListener)); } });
public boolean include(Profile profile) { assert profile instanceof CacheProfile; CacheProfile cp = (CacheProfile)profile; DataPolicy dp = cp.dataPolicy; return dp.withReplication() || (cp.allEvents() && (dp.withStorage() || cp.hasCacheListener)); } });
public Set<Region<?, ?>> rootRegions() { preOp(); Set<Region<?, ?>> rRegions = new HashSet<Region<?,?>>(); Iterator<LocalRegion> it = this.cache.rootRegions().iterator(); while (it.hasNext()) { LocalRegion lr = it.next(); if (!lr.getAttributes().getDataPolicy().withStorage()) { rRegions.add(new ProxyRegion(this, lr)); } } return Collections.unmodifiableSet(rRegions); }
public Set<Region<?, ?>> rootRegions() { preOp(); Set<Region<?, ?>> rRegions = new HashSet<Region<?,?>>(); Iterator<LocalRegion> it = this.cache.rootRegions().iterator(); while (it.hasNext()) { LocalRegion lr = it.next(); if (!lr.getAttributes().getDataPolicy().withStorage()) { rRegions.add(new ProxyRegion(this, lr)); } } return Collections.unmodifiableSet(rRegions); }
public final boolean isAccessorForRegion() { final LocalRegion r = this.region; if (r != null) { if (r.getPartitionAttributes() != null) { return r.getPartitionAttributes().getLocalMaxMemory() == 0; } else { return !r.getDataPolicy().withStorage(); } } return false; }
public final boolean isAccessorForRegion() { final LocalRegion r = this.region; if (r != null) { if (r.getPartitionAttributes() != null) { return r.getPartitionAttributes().getLocalMaxMemory() == 0; } else { return !r.getDataPolicy().withStorage(); } } return false; }
public final boolean isAccessorForRegion() { final LocalRegion r = this.region; if (r != null) { if (r.getPartitionAttributes() != null) { return r.getPartitionAttributes().getLocalMaxMemory() == 0; } else { return !r.getDataPolicy().withStorage(); } } return false; }
/** * Can this table contain any data locally? */ public final boolean isDataStore() { return this.region != null && this.region.getDataPolicy().withStorage() && (!this.region.getDataPolicy().withPartitioning() || this.region .getPartitionAttributes().getLocalMaxMemory() != 0); }
/** * Can this table contain any data locally? */ public final boolean isDataStore() { return this.region != null && this.region.getDataPolicy().withStorage() && (!this.region.getDataPolicy().withPartitioning() || this.region .getPartitionAttributes().getLocalMaxMemory() != 0); }
protected static boolean isLocalAccessor(CacheDistributionAdvisee region) { if (!region.getAttributes().getDataPolicy().withStorage()) { return true; } if (region.getAttributes().getPartitionAttributes() != null && region.getAttributes().getPartitionAttributes() .getLocalMaxMemory() == 0) { return true; } return false; }
protected void enableConcurrencyChecks() { this.concurrencyChecksEnabled = true; if (this.dataPolicy.withStorage()) { RegionEntryFactory versionedEntryFactory = this.entries.getEntryFactory().makeVersioned(); Assert.assertTrue(this.entries.size() == 0, "RegionMap should be empty but was of size:"+this.entries.size()); this.entries.setEntryFactory(versionedEntryFactory); createVersionVector(); } }
protected static boolean isLocalAccessor(CacheDistributionAdvisee region) { if (!region.getAttributes().getDataPolicy().withStorage()) { return true; } if (region.getAttributes().getPartitionAttributes() != null && region.getAttributes().getPartitionAttributes() .getLocalMaxMemory() == 0) { return true; } return false; }
protected void enableConcurrencyChecks() { if (!allowConcurrencyChecksOverride()) { return; } this.concurrencyChecksEnabled = true; if (this.dataPolicy.withStorage()) { RegionEntryFactory versionedEntryFactory = this.entries.getEntryFactory().makeVersioned(); Assert.assertTrue(this.entries.sizeInVM() == 0, "RegionMap should be empty but was of size:"+this.entries.sizeInVM()); this.entries.setEntryFactory(versionedEntryFactory); createVersionVector(); } }