|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.dontdrinkandroot.cache.statistics.impl.SimpleCacheStatistics
public class SimpleCacheStatistics
| Constructor Summary | |
|---|---|
SimpleCacheStatistics()
|
|
| Method Summary | |
|---|---|
long |
getCacheHits()
Get the total number of cache hits. |
long |
getCacheMisses()
Get the total number of cache misses. |
long |
getCacheMissesExpired()
Get the number of cache misses where the entry was expired. |
long |
getCacheMissesNotFound()
Get the number of cache misses where the entry was not found. |
int |
getCurrentSize()
Get the current size (the number of entries) in the cache. |
long |
getGetCount()
Get the total get count. |
float |
getHitRate()
Get the current hit rate, this is a value [0,1] which is the percentage of hits on all get requests. |
long |
getPutCount()
Get the total put count. |
void |
increaseCacheHits()
|
void |
increaseCacheMissesExpired()
|
void |
increaseCacheMissesNotFound()
|
void |
increaseGetCount()
|
void |
increasePutCount()
|
void |
reset()
Reset the statistics. |
void |
setCacheHits(long cacheHits)
|
void |
setCacheMissesExpired(long cacheMissesExpired)
|
void |
setCacheMissesNotFound(long cacheMissesNotFound)
|
void |
setCurrentSize(int currentSize)
|
void |
setGetCount(long getCount)
|
void |
setPutCount(long putCount)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleCacheStatistics()
| Method Detail |
|---|
public long getCacheHits()
CacheStatistics
getCacheHits in interface CacheStatisticspublic void setCacheHits(long cacheHits)
public long getCacheMissesNotFound()
CacheStatistics
getCacheMissesNotFound in interface CacheStatisticspublic void setCacheMissesNotFound(long cacheMissesNotFound)
public long getCacheMissesExpired()
CacheStatistics
getCacheMissesExpired in interface CacheStatisticspublic void setCacheMissesExpired(long cacheMissesExpired)
public long getPutCount()
CacheStatistics
getPutCount in interface CacheStatisticspublic void setPutCount(long putCount)
public long getGetCount()
CacheStatistics
getGetCount in interface CacheStatisticspublic void setGetCount(long getCount)
public void reset()
CacheStatistics
reset in interface CacheStatisticspublic float getHitRate()
CacheStatistics
getHitRate in interface CacheStatisticspublic long getCacheMisses()
CacheStatistics
getCacheMisses in interface CacheStatisticspublic int getCurrentSize()
CacheStatistics
getCurrentSize in interface CacheStatisticspublic void setCurrentSize(int currentSize)
public void increasePutCount()
public void increaseGetCount()
public void increaseCacheMissesNotFound()
public void increaseCacheMissesExpired()
public void increaseCacheHits()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||