Class JmxBaseCache
- java.lang.Object
-
- com.sun.appserv.util.cache.mbeans.JmxBaseCache
-
- All Implemented Interfaces:
JmxBaseCacheMBean
- Direct Known Subclasses:
JmxLruCache,JmxMultiLruCache
public class JmxBaseCache extends Object implements JmxBaseCacheMBean
This class provides implementation for JmxBaseCacheMBean- Since:
- May 4, 2005
- Version:
- 1.4
- Author:
- Krishnamohan Meduri (Krishna.Meduri@Sun.com)
-
-
Constructor Summary
Constructors Constructor Description JmxBaseCache(BaseCache baseCache, String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegergetAddCount()Returns the number of times new entries have been addedIntegergetEntryCount()Returns current number of EntriesIntegergetHitCount()Return the number of cache hitsIntegergetMaxEntries()Returns maximum possible number of entriesIntegergetMissCount()Returns the number of cache missesStringgetName()Returns a unique identifier for this MBean inside the domainIntegergetOverflowCount()Returns the number of times that an overflow has occurredIntegergetRefreshCount()Returns the number of values that have been refreshed (replaced with a new value in an existing extry)IntegergetRemovalCount()Returns the number of entries that have been removedIntegergetTableSize()Returns current number of bucketsIntegergetThreshold()Returns threshold.
-
-
-
Method Detail
-
getName
public String getName()
Returns a unique identifier for this MBean inside the domain- Specified by:
getNamein interfaceJmxBaseCacheMBean
-
getMaxEntries
public Integer getMaxEntries()
Returns maximum possible number of entries- Specified by:
getMaxEntriesin interfaceJmxBaseCacheMBean
-
getThreshold
public Integer getThreshold()
Returns threshold. This when reached, an overflow will occur- Specified by:
getThresholdin interfaceJmxBaseCacheMBean
-
getTableSize
public Integer getTableSize()
Returns current number of buckets- Specified by:
getTableSizein interfaceJmxBaseCacheMBean
-
getEntryCount
public Integer getEntryCount()
Returns current number of Entries- Specified by:
getEntryCountin interfaceJmxBaseCacheMBean
-
getHitCount
public Integer getHitCount()
Return the number of cache hits- Specified by:
getHitCountin interfaceJmxBaseCacheMBean
-
getMissCount
public Integer getMissCount()
Returns the number of cache misses- Specified by:
getMissCountin interfaceJmxBaseCacheMBean
-
getRemovalCount
public Integer getRemovalCount()
Returns the number of entries that have been removed- Specified by:
getRemovalCountin interfaceJmxBaseCacheMBean
-
getRefreshCount
public Integer getRefreshCount()
Returns the number of values that have been refreshed (replaced with a new value in an existing extry)- Specified by:
getRefreshCountin interfaceJmxBaseCacheMBean
-
getOverflowCount
public Integer getOverflowCount()
Returns the number of times that an overflow has occurred- Specified by:
getOverflowCountin interfaceJmxBaseCacheMBean
-
getAddCount
public Integer getAddCount()
Returns the number of times new entries have been added- Specified by:
getAddCountin interfaceJmxBaseCacheMBean
-
-