public boolean include(Profile profile) { // probably not needed as all profiles for a partitioned region are Partition profiles if (profile instanceof PartitionProfile) { PartitionProfile p = (PartitionProfile)profile; return p.isDataStore && (!p.dataPolicy.withPersistence() || p.regionInitialized); } return false; } });
public boolean include(Profile profile) { // probably not needed as all profiles for a partitioned region are Partition profiles if (profile instanceof PartitionProfile) { PartitionProfile p = (PartitionProfile)profile; return p.isDataStore && (!p.dataPolicy.withPersistence() || p.regionInitialized); } return false; } });
/** * whether concurrency checks should be disabled for this region */ public boolean supportsConcurrencyChecks() { return !isSecret() || this.dataPolicy.withPersistence(); }
public boolean getPersistBackup() { //checkReadiness(); return getDataPolicy().withPersistence(); }
/** * whether concurrency checks should be disabled for this region */ @Override public boolean supportsConcurrencyChecks() { final GemFireCacheImpl.StaticSystemCallbacks sysCb = GemFireCacheImpl.FactoryStatics.systemCallbacks; if (sysCb != null) { return sysCb.supportsRegionConcurrencyChecks(this); } return !isSecret() || this.dataPolicy.withPersistence(); }
@Override protected boolean doPersist() { final GemFireCacheImpl.StaticSystemCallbacks sysCb = GemFireCacheImpl.FactoryStatics.systemCallbacks; return getDataPolicy().withPersistence() && sysCb != null && sysCb.createUUIDPersistentRegion(LocalRegion.this); }
/** Return whether the given region has persistence * * @param aRegion The Region to check for persistence. * @return True if the region has persistence, false otherwise. */ public static boolean withPersistence(Region aRegion) { // only GemFire 6.5 (and beyond) has a method for DataPolicy.withPersistence() return aRegion.getAttributes().getDataPolicy().withPersistence(); }
public final VersionSource getVersionMember() { if(dataPolicy.withPersistence()) { return getDiskStore().getDiskStoreID(); } else { return this.cache.getMyId(); } }
public VersionSource getVersionMember() { if(dataPolicy.withPersistence()) { return getDiskStore().getDiskStoreID(); } else { return this.cache.getMyId(); } }
private boolean isRecoveryNeeded() { return getDataPolicy().withPersistence() && getDiskRegion().isRecreated(); }
@Override public boolean supportsRegionConcurrencyChecks(LocalRegion region) { // [sjigyasu] Allow GFE like behavior of the default is set to true if (defaultRegionConcurrencyChecksEnabled()) { return ((!region.isSecret() || region.getDataPolicy().withPersistence()) && !GemFireStore.DDL_STMTS_REGION.equals(region.getName())); } // Return false for regions which are for DDL or secret return (!region.isSecret() && !GemFireStore.DDL_STMTS_REGION .equals(region.getName())); }
@Override public boolean supportsRegionConcurrencyChecks(LocalRegion region) { // [sjigyasu] Allow GFE like behavior of the default is set to true if (defaultRegionConcurrencyChecksEnabled()) { return ((!region.isSecret() || region.getDataPolicy().withPersistence()) && !GemFireStore.DDL_STMTS_REGION.equals(region.getName())); } // Return false for regions which are for DDL or secret return (!region.isSecret() && !GemFireStore.DDL_STMTS_REGION .equals(region.getName())); }
private boolean isRebalanceNecessary() { //Fixed partitions will always be rebalanced. //Persistent partitions that have recovered from disk will //also need to rebalance primaries return isRebalance || director.isRebalanceNecessary(leaderRegion.getRedundancyProvider().isRedundancyImpaired(), leaderRegion.getDataPolicy().withPersistence()); }
private boolean isRebalanceNecessary() { //Fixed partitions will always be rebalanced. //Persistent partitions that have recovered from disk will //also need to rebalance primaries return isRebalance || director.isRebalanceNecessary(leaderRegion.getRedundancyProvider().isRedundancyImpaired(), leaderRegion.getDataPolicy().withPersistence()); }
/** * Returns true if this region's config indicates that it will use a disk store. * Added for bug 42055. */ protected boolean usesDiskStore(RegionAttributes ra) { return !isProxy() && (getAttributes().getDataPolicy().withPersistence() || isOverflowEnabled()); }
/** local regions do not perform versioning */ protected boolean shouldGenerateVersionTag(RegionEntry entry, EntryEventImpl event) { if (this.getDataPolicy().withPersistence()) { return true; } else { return this.concurrencyChecksEnabled && (entry.getVersionStamp().hasValidVersion() || this.dataPolicy.withReplication()); } }
/** * Returns true if this region's config indicates that it will use a disk store. * Added for bug 42055. */ protected boolean usesDiskStore(RegionAttributes ra) { return !isProxy() && (getAttributes().getDataPolicy().withPersistence() || isOverflowEnabled()); }
public void run2() throws CacheException { Region region = createRegion(name); // if this is a backup region, then it will find the data // otherwise it should not if (region.getAttributes().getDataPolicy().withPersistence()) { assertEquals(value, region.get(key)); } else { assertNull(region.get(key)); } } });
protected boolean requiresPersistence(RegionDescription rd) { return rd.getDataPolicy().withPersistence() || (rd.getEvictionAttributes() != null && rd.getEvictionAttributes().getAction().isOverflowToDisk()); }
protected boolean requiresPersistence(RegionDescription rd) { return rd.getDataPolicy().withPersistence() || (rd.getEvictionAttributes() != null && rd.getEvictionAttributes().getAction().isOverflowToDisk()); }