public static class LruBlockCache.CacheStats extends Object implements BlockCache.Stats
Constructor and Description |
---|
CacheStats() |
Modifier and Type | Method and 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.
|
public void miss()
public void hit()
public void evict()
public void duplicateReads()
public void evicted()
public long requestCount()
BlockCache.Stats
requestCount
in interface BlockCache.Stats
public long getMissCount()
public long hitCount()
BlockCache.Stats
hitCount
in interface BlockCache.Stats
public long getEvictionCount()
public long getDuplicateReads()
public long getEvictedCount()
public double getHitRatio()
public double getMissRatio()
public double evictedPerEviction()
Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.