1, EvictionAction.OVERFLOW_TO_DISK)); RegionAttributes attr = factory.create(); DistributedRegion distRegion = new DistributedRegion(regionName, attr, null, (GemFireCacheImpl)cache, new InternalRegionArguments() .setDestroyLockFlag(true).setRecreateFlag(false)
.getName()); RegionAttributes attr = factory.create(); DistributedRegion distRegion = new DistributedRegion(regionName, attr, null, (GemFireCacheImpl)cache, new InternalRegionArguments() .setDestroyLockFlag(true).setRecreateFlag(false)
rgn = new LocalRegion(name, attrs, null, this, internalRegionArgs); } else { rgn = new DistributedRegion(name, attrs, null, this, internalRegionArgs);
protected final class Stopper extends CancelCriterion { /* * (non-Javadoc) * * @see com.gemstone.gemfire.CancelCriterion#cancelInProgress() */ @Override public String cancelInProgress() { //String reason = GemFireCacheImpl.this.getDistributedSystem() // .getCancelCriterion().cancelInProgress(); final DM dm = GemFireCacheImpl.this.system.getDM(); if (dm != null) { String reason; if ((reason = dm.getCancelCriterion().cancelInProgress()) != null) { return reason; } } else { return "No dm"; } if (!GemFireCacheImpl.this.isClosing) { return null; } final Throwable disconnectCause = GemFireCacheImpl.this.disconnectCause; if (disconnectCause != null) { return disconnectCause.getMessage(); } else { return "The cache is closed."; // this + ": closed";
DistributedRegion distRegion = new DistributedRegion(regionName, attr, null, (GemFireCacheImpl)getCache(), new InternalRegionArguments() .setDestroyLockFlag(true).setRecreateFlag(false)
newRegion = local ? new LocalRegion(subregionName, regionAttributes, this, this.cache, internalRegionArgs) : new DistributedRegion(subregionName, regionAttributes, this, this.cache, internalRegionArgs);
newRegion = local ? new LocalRegion(subregionName, regionAttributes, this, this.cache, internalRegionArgs) : new DistributedRegion(subregionName, regionAttributes, this, this.cache, internalRegionArgs);