/** * Constructor for the LRUStatistics object * * @param name Description of the Parameter */ public LRUStatistics( StatisticsFactory factory, String name, EnableLRU helper) { String statName = helper.getStatisticsName() + "-" + name; stats = factory.createAtomicStatistics(helper.getStatisticsType(), statName); if(!helper.getEvictionAlgorithm().isLRUHeap()) { limitId = helper.getLimitStatId(); } destroysLimitId = helper.getDestroysLimitStatId(); counterId = helper.getCountStatId(); evictionsId = helper.getEvictionsStatId(); destroysId = helper.getDestroysStatId(); this.evaluationsId = helper.getEvaluationsStatId(); this.greedyReturnsId = helper.getGreedyReturnsStatId(); }
/** * Constructor for the LRUStatistics object * * @param name Description of the Parameter */ public LRUStatistics( StatisticsFactory factory, String name, EnableLRU helper) { regionName = name; String statName = helper.getStatisticsName() + "-" + name; stats = factory.createAtomicStatistics(helper.getStatisticsType(), statName); if(!helper.getEvictionAlgorithm().isLRUHeap()) { limitId = helper.getLimitStatId(); } destroysLimitId = helper.getDestroysLimitStatId(); counterId = helper.getCountStatId(); evictionsId = helper.getEvictionsStatId(); faultInsId = helper.getFaultInsStatId(); destroysId = helper.getDestroysStatId(); this.evaluationsId = helper.getEvaluationsStatId(); this.greedyReturnsId = helper.getGreedyReturnsStatId(); }