public class EhCacheStatistics
extends java.lang.Object
implements org.jasig.cas.monitor.CacheStatistics
| Constructor and Description |
|---|
EhCacheStatistics(net.sf.ehcache.Cache cache)
Creates a new instance that delegates statistics inquiries to the given
Cache instance. |
| Modifier and Type | Method and Description |
|---|---|
long |
getCapacity()
Gets the heap memory capacity of the cache.
|
long |
getEvictions() |
java.lang.String |
getName() |
int |
getPercentFree() |
long |
getSize()
Gets the size of heap consumed by items stored in the cache.
|
void |
toString(java.lang.StringBuilder builder) |
public EhCacheStatistics(net.sf.ehcache.Cache cache)
Cache instance.cache - Cache instance for which to gather statistics.public long getSize()
getSize in interface org.jasig.cas.monitor.CacheStatisticspublic long getCapacity()
getCapacity in interface org.jasig.cas.monitor.CacheStatisticspublic long getEvictions()
getEvictions in interface org.jasig.cas.monitor.CacheStatisticspublic int getPercentFree()
getPercentFree in interface org.jasig.cas.monitor.CacheStatisticspublic java.lang.String getName()
getName in interface org.jasig.cas.monitor.CacheStatisticspublic void toString(java.lang.StringBuilder builder)
toString in interface org.jasig.cas.monitor.CacheStatistics