|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.avaje.ebean.cache.ServerCacheStatistics
public class ServerCacheStatistics
The statistics collected per cache.
These can be monitored to review the effectiveness of a particular cache.
Constructor Summary | |
---|---|
ServerCacheStatistics()
|
Method Summary | |
---|---|
String |
getCacheName()
Return the name of the cache. |
int |
getHitCount()
Return the hit count. |
int |
getHitRatio()
Returns an int from 0 to 100 (percentage) for the hit ratio. |
int |
getMaxSize()
Return the maximum size of the cache. |
int |
getMissCount()
Return the miss count. |
int |
getSize()
Return the size of the cache. |
void |
setCacheName(String cacheName)
Set the name of the cache. |
void |
setHitCount(int hitCount)
Set the hit count. |
void |
setMaxSize(int maxSize)
Set the maximum size of the cache. |
void |
setMissCount(int missCount)
Set the miss count. |
void |
setSize(int size)
Set the size of the cache. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServerCacheStatistics()
Method Detail |
---|
public String getCacheName()
public void setCacheName(String cacheName)
public int getHitCount()
public void setHitCount(int hitCount)
public int getMissCount()
public void setMissCount(int missCount)
public int getSize()
public void setSize(int size)
public int getMaxSize()
Can be used in conjunction with the size to determine if the cache use is being potentially limited by its maximum size.
public void setMaxSize(int maxSize)
public int getHitRatio()
A hit ratio of 100 means every get request against the cache hits an entry.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |