LRUStatistics getOrCreatePRLRUStats(PlaceHolderDiskRegion dr) { String prName = dr.getPrName(); LRUStatistics result = null; synchronized (this.prlruStatMap) { result = this.prlruStatMap.get(prName); if (result == null) { EvictionAttributesImpl ea = dr.getEvictionAttributes(); LRUAlgorithm ec = ea.createEvictionController(null, dr.getOffHeap()); StatisticsFactory sf = cache.getDistributedSystem(); result = ec.getLRUHelper().initStats(dr, sf); this.prlruStatMap.put(prName, result); } } return result; }
LRUStatistics getOrCreatePRLRUStats(PlaceHolderDiskRegion dr) { String prName = dr.getPrName(); LRUStatistics result = null; synchronized (this.prlruStatMap) { result = this.prlruStatMap.get(prName); if (result == null) { EvictionAttributesImpl ea = dr.getEvictionAttributes(); LRUAlgorithm ec = ea.createEvictionController(null, dr.getEnableOffHeapMemory()); StatisticsFactory sf = cache.getDistributedSystem(); result = ec.getLRUHelper().initStats(dr, sf); this.prlruStatMap.put(prName, result); } } return result; }
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(); } } }
tmp = ccHelper.initStats(region, sf);
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(); } } }
tmp = ccHelper.initStats(region, sf);