@Override public void changeOwner(LocalRegion r, InternalRegionArguments args) { super.changeOwner(r, args); _getLruList().setBucketRegion(r); this.evictionController.setBucketRegion(r); }
@Override public void changeOwner(LocalRegion r) { super.changeOwner(r); _getLruList().setBucketRegion(r); this.evictionController.setBucketRegion(r); }
public NewLRUClockHand( Region region, EnableLRU ccHelper, NewLRUClockHand oldList) { setBucketRegion(region); this.lock = new HeadLock(); // behavior relies on a single evicted node in the pipe when the pipe is empty. initHeadAndTail(); if (oldList.stats == null) { // see bug 41388 StatisticsFactory sf = region.getCache().getDistributedSystem(); this.stats = ccHelper.initStats(region, sf); } else { this.stats = oldList.stats; if (this.bucketRegion != null) { this.stats.decrementCounter(this.bucketRegion.getCounter()); this.bucketRegion.resetCounter(); } else { this.stats.resetCounter(); } } }
setBucketRegion(region); this.lock = new HeadLock();
public NewLRUClockHand( Region region, EnableLRU ccHelper ,NewLRUClockHand oldList) { setBucketRegion(region); this.lock = new HeadLock(); // behavior relies on a single evicted node in the pipe when the pipe is empty. if ( NewLRUClockHand.debug ) { NewLRUClockHand.logWriter = region.getCache().getDistributedSystem().getLogWriter().convertToLogWriterI18n(); } initHeadAndTail(); if (oldList.stats == null) { // see bug 41388 StatisticsFactory sf = region.getCache().getDistributedSystem(); this.stats = ccHelper.initStats(region, sf); } else { this.stats = oldList.stats; if (this.bucketRegion != null) { this.stats.decrementCounter(this.bucketRegion.getCounter()); this.bucketRegion.resetCounter(); } else { this.stats.resetCounter(); } } }
setBucketRegion(region); this.lock = new HeadLock();