/** The counter for <code>HeapLRUCapacityController</code> reflects * in use heap. Since you can not programatically reset the amount * of heap usage (at least not directly) this method does <b>NOT</b> * reset the counter value. */ @Override final public void resetCounter() { super.resetCounter(); } }
/** The counter for <code>HeapLRUCapacityController</code> reflects * in use heap. Since you can not programatically reset the amount * of heap usage (at least not directly) this method does <b>NOT</b> * reset the counter value. */ @Override final public void resetCounter() { super.resetCounter(); } }
} /** * called when an LRU map is cleared... resets stats and releases prev and next. */ public void clear(RegionVersionVector rvv) { if (rvv != null) { return; // when concurrency checks are enabled the clear operation removes entries iteratively } synchronized (this.lock ) { if (bucketRegion!=null) { this.stats.decrementCounter(bucketRegion.getCounter()); bucketRegion.resetCounter(); } else { this.stats.resetCounter(); } initHeadAndTail(); // LRUClockNode node = this.tail; // node.setEvicted(); // // // NYI need to walk the list and call unsetInList for each one. // // // tail's next should already be null. // setHead( node ); } }
} /** * called when an LRU map is cleared... resets stats and releases prev and next. */ public void clear(RegionVersionVector rvv) { if (rvv != null) { return; // when concurrency checks are enabled the clear operation removes entries iteratively } synchronized (this.lock ) { if (bucketRegion!=null) { this.stats.decrementCounter(bucketRegion.getCounter()); bucketRegion.resetCounter(); } else { this.stats.resetCounter(); } initHeadAndTail(); // LRUClockNode node = this.tail; // node.setEvicted(); // // // NYI need to walk the list and call unsetInList for each one. // // // tail's next should already be null. // setHead( node ); } }
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(); } } }
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(); } } }