@InterfaceAudience.Private public class CacheStats extends Object
Constructor and Description |
---|
CacheStats(String name) |
CacheStats(String name,
int numPeriodsInWindow) |
Modifier and Type | Method and Description |
---|---|
void |
evict() |
void |
evicted(long t) |
double |
evictedPerEviction() |
AgeSnapshot |
getAgeAtEvictionSnapshot() |
long |
getEvictedCount() |
long |
getEvictionCount() |
long |
getHitCachingCount() |
double |
getHitCachingRatio() |
double |
getHitCachingRatioPastNPeriods() |
long |
getHitCount() |
double |
getHitRatio() |
double |
getHitRatioPastNPeriods() |
long |
getMissCachingCount() |
double |
getMissCachingRatio() |
long |
getMissCount() |
double |
getMissRatio() |
long |
getRequestCachingCount() |
long |
getRequestCount() |
long |
getSumHitCachingCountsPastNPeriods() |
long |
getSumHitCountsPastNPeriods() |
long |
getSumRequestCachingCountsPastNPeriods() |
long |
getSumRequestCountsPastNPeriods() |
void |
hit(boolean caching) |
void |
miss(boolean caching) |
void |
rollMetricsPeriod() |
String |
toString() |
public CacheStats(String name)
public CacheStats(String name, int numPeriodsInWindow)
public void miss(boolean caching)
public void hit(boolean caching)
public void evict()
public void evicted(long t)
public long getRequestCount()
public long getRequestCachingCount()
public long getMissCount()
public long getMissCachingCount()
public long getHitCount()
public long getHitCachingCount()
public long getEvictionCount()
public long getEvictedCount()
public double getHitRatio()
public double getHitCachingRatio()
public double getMissRatio()
public double getMissCachingRatio()
public double evictedPerEviction()
public void rollMetricsPeriod()
public long getSumHitCountsPastNPeriods()
public long getSumRequestCountsPastNPeriods()
public long getSumHitCachingCountsPastNPeriods()
public long getSumRequestCachingCountsPastNPeriods()
public double getHitRatioPastNPeriods()
public double getHitCachingRatioPastNPeriods()
public AgeSnapshot getAgeAtEvictionSnapshot()
Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.