Class LruBlockCache.CacheStats
- java.lang.Object
-
- org.apache.accumulo.core.file.blockfile.cache.lru.LruBlockCache.CacheStats
-
- All Implemented Interfaces:
BlockCache.Stats
- Enclosing class:
- LruBlockCache
public static class LruBlockCache.CacheStats extends Object implements BlockCache.Stats
-
-
Constructor Summary
Constructors Constructor Description CacheStats()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
duplicateReads()
void
evict()
void
evicted()
double
evictedPerEviction()
long
getDuplicateReads()
long
getEvictedCount()
long
getEvictionCount()
double
getHitRatio()
long
getMissCount()
double
getMissRatio()
void
hit()
long
hitCount()
Returns the number of lookups that have returned a cached value.void
miss()
long
requestCount()
Returns the number of times the lookup methods have returned either a cached or uncached value.
-
-
-
Method Detail
-
miss
public void miss()
-
hit
public void hit()
-
evict
public void evict()
-
duplicateReads
public void duplicateReads()
-
evicted
public void evicted()
-
requestCount
public long requestCount()
Description copied from interface:BlockCache.Stats
Returns the number of times the lookup methods have returned either a cached or uncached value.- Specified by:
requestCount
in interfaceBlockCache.Stats
- Returns:
- the number of lookups
-
getMissCount
public long getMissCount()
-
hitCount
public long hitCount()
Description copied from interface:BlockCache.Stats
Returns the number of lookups that have returned a cached value.- Specified by:
hitCount
in interfaceBlockCache.Stats
- Returns:
- the number of lookups that have returned a cached value
-
getEvictionCount
public long getEvictionCount()
-
getDuplicateReads
public long getDuplicateReads()
-
getEvictedCount
public long getEvictedCount()
-
getHitRatio
public double getHitRatio()
-
getMissRatio
public double getMissRatio()
-
evictedPerEviction
public double evictedPerEviction()
-
-