|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.shiftone.cache.decorator.jmx.JmxCache
| Constructor Summary | |
JmxCache(java.lang.String name,
Cache cache)
|
|
| Method Summary | |
void |
addObject(java.lang.Object key,
java.lang.Object cacheObject)
adds an object to the cache |
void |
clear()
Removes ALL keys and values from the cache. |
void |
clearCache()
clear the cache |
void |
clearStatistics()
clear the stats |
long |
getAddCount()
the total number of calls to addObject() |
java.lang.String |
getCacheName()
the name of this cache |
long |
getClearCount()
the total number of calls to clear() |
long |
getGetCount()
the total number of calls to getObject() - total of hit count and miss count. |
long |
getHitCount()
the total number of calls to getObject() that resulted in a non-null value |
double |
getHitRatio()
hits / gets |
long |
getMissCount()
the total number of calls to getObject() that resulted in a null value |
java.lang.Object |
getObject(java.lang.Object key)
gets the value stored in the cache by it's key, or null if the key is not found. |
long |
getRemoveCount()
the total number of calls to remove() |
int |
getSize()
the current number of keys in the cache |
java.lang.String |
getToString()
the value of toString() |
void |
remove(java.lang.Object key)
remove a specific key/value pair from the cache |
int |
size()
The number of key/value pares in the cache |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public JmxCache(java.lang.String name,
Cache cache)
| Method Detail |
public java.lang.String getCacheName()
JmxCacheMBean
getCacheName in interface JmxCacheMBeanpublic java.lang.String getToString()
JmxCacheMBean
getToString in interface JmxCacheMBeanpublic int getSize()
JmxCacheMBean
getSize in interface JmxCacheMBeanpublic void clearCache()
JmxCacheMBean
clearCache in interface JmxCacheMBeanpublic long getGetCount()
JmxCacheMBean
getGetCount in interface JmxCacheMBeanpublic long getAddCount()
JmxCacheMBean
getAddCount in interface JmxCacheMBeanpublic long getRemoveCount()
JmxCacheMBean
getRemoveCount in interface JmxCacheMBeanpublic long getClearCount()
JmxCacheMBean
getClearCount in interface JmxCacheMBeanpublic long getHitCount()
JmxCacheMBean
getHitCount in interface JmxCacheMBeanpublic long getMissCount()
JmxCacheMBean
getMissCount in interface JmxCacheMBeanpublic double getHitRatio()
JmxCacheMBean
getHitRatio in interface JmxCacheMBeanpublic void clearStatistics()
JmxCacheMBean
clearStatistics in interface JmxCacheMBean
public void addObject(java.lang.Object key,
java.lang.Object cacheObject)
Cache
addObject in interface Cachepublic java.lang.Object getObject(java.lang.Object key)
Cache
getObject in interface Cachepublic int size()
Cache
size in interface Cachepublic void remove(java.lang.Object key)
Cache
remove in interface Cachepublic void clear()
Cache
clear in interface Cachepublic java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||