164165166167168169170171172173
* @return the hits */ public long getHits() { long hits = -1; if (consumers instanceof LRUCache) { LRUCache cache = (LRUCache) consumers; hits = cache.getHits(); } return hits; }
180181182183184185186187188189
* @return the misses */ public long getMisses() { long misses = -1; if (consumers instanceof LRUCache) { LRUCache cache = (LRUCache) consumers; misses = cache.getMisses(); } return misses; }
191192193194195196197198199
/** * Resets the cache statistics */ public void resetCacheStatistics() { if (consumers instanceof LRUCache) { LRUCache cache = (LRUCache) consumers; cache.resetStatistics(); } }
417418419420421422423424425426
* @return the capacity */ public int getCapacity() { int capacity = -1; if (producers instanceof LRUCache) { LRUCache cache = (LRUCache) producers; capacity = cache.getMaxCacheSize(); } return capacity; }
433434435436437438439440441442
* @return the hits */ public long getHits() { long hits = -1; if (producers instanceof LRUCache) { LRUCache cache = (LRUCache) producers; hits = cache.getHits(); } return hits; }
449450451452453454455456457458
* @return the misses */ public long getMisses() { long misses = -1; if (producers instanceof LRUCache) { LRUCache cache = (LRUCache) producers; misses = cache.getMisses(); } return misses; }
460461462463464465466467468
/** * Resets the cache statistics */ public void resetCacheStatistics() { if (producers instanceof LRUCache) { LRUCache cache = (LRUCache) producers; cache.resetStatistics(); } }
423424425426427428429430431432
439440441442443444445446447448
455456457458459460461462463464