|
||||||||||
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 JmxCacheMBean
public java.lang.String getToString()
JmxCacheMBean
getToString
in interface JmxCacheMBean
public int getSize()
JmxCacheMBean
getSize
in interface JmxCacheMBean
public void clearCache()
JmxCacheMBean
clearCache
in interface JmxCacheMBean
public long getGetCount()
JmxCacheMBean
getGetCount
in interface JmxCacheMBean
public long getAddCount()
JmxCacheMBean
getAddCount
in interface JmxCacheMBean
public long getRemoveCount()
JmxCacheMBean
getRemoveCount
in interface JmxCacheMBean
public long getClearCount()
JmxCacheMBean
getClearCount
in interface JmxCacheMBean
public long getHitCount()
JmxCacheMBean
getHitCount
in interface JmxCacheMBean
public long getMissCount()
JmxCacheMBean
getMissCount
in interface JmxCacheMBean
public double getHitRatio()
JmxCacheMBean
getHitRatio
in interface JmxCacheMBean
public void clearStatistics()
JmxCacheMBean
clearStatistics
in interface JmxCacheMBean
public void addObject(java.lang.Object key, java.lang.Object cacheObject)
Cache
addObject
in interface Cache
public java.lang.Object getObject(java.lang.Object key)
Cache
getObject
in interface Cache
public int size()
Cache
size
in interface Cache
public void remove(java.lang.Object key)
Cache
remove
in interface Cache
public void clear()
Cache
clear
in interface Cache
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |