FileDocCategorySizeDatePackage
JmxBaseCache.javaAPI DocGlassfish v2 API5190Fri May 04 22:35:30 BST 2007com.sun.appserv.util.cache.mbeans

JmxBaseCache

public class JmxBaseCache extends Object implements JmxBaseCacheMBean
This class provides implementation for JmxBaseCacheMBean
author
Krishnamohan Meduri (Krishna.Meduri@Sun.com)

Fields Summary
private String
name
private com.sun.appserv.util.cache.BaseCache
baseCache
Constructors Summary
public JmxBaseCache(com.sun.appserv.util.cache.BaseCache baseCache, String name)

        this.baseCache = baseCache;
        this.name = name;
    
Methods Summary
public java.lang.IntegergetAddCount()
Returns the number of times new entries have been added

        return (Integer) baseCache.getStatByName(
                                        Constants.STAT_BASECACHE_ADD_COUNT);
    
public java.lang.IntegergetEntryCount()
Returns current number of Entries

        return (Integer) baseCache.getStatByName(
                                        Constants.STAT_BASECACHE_ENTRY_COUNT);
    
public java.lang.IntegergetHitCount()
Return the number of cache hits

        return (Integer) baseCache.getStatByName(
                                        Constants.STAT_BASECACHE_HIT_COUNT);
    
public java.lang.IntegergetMaxEntries()
Returns maximum possible number of entries

        return (Integer) baseCache.getStatByName(
                                        Constants.STAT_BASECACHE_MAX_ENTRIES);
    
public java.lang.IntegergetMissCount()
Returns the number of cache misses

        return (Integer) baseCache.getStatByName(
                                        Constants.STAT_BASECACHE_MISS_COUNT);
    
public java.lang.StringgetName()
Returns a unique identifier for this MBean inside the domain

        return name;
    
public java.lang.IntegergetOverflowCount()
Returns the number of times that an overflow has occurred

        return (Integer) baseCache.getStatByName(
                                        Constants.STAT_BASECACHE_OVERFLOW_COUNT);
    
public java.lang.IntegergetRefreshCount()
Returns the number of values that have been refreshed (replaced with a new value in an existing extry)

        return (Integer) baseCache.getStatByName(
                                        Constants.STAT_BASECACHE_REFRESH_COUNT);
    
public java.lang.IntegergetRemovalCount()
Returns the number of entries that have been removed

        return (Integer) baseCache.getStatByName(
                                        Constants.STAT_BASECACHE_REMOVAL_COUNT);
    
public java.lang.IntegergetTableSize()
Returns current number of buckets

        return (Integer) baseCache.getStatByName(
                                        Constants.STAT_BASECACHE_TABLE_SIZE);
    
public java.lang.IntegergetThreshold()
Returns threshold. This when reached, an overflow will occur

        return (Integer) baseCache.getStatByName(
                                        Constants.STAT_BASECACHE_THRESHOLD);