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

JmxLruCache

public class JmxLruCache extends JmxBaseCache implements JmxLruCacheMBean
This class provides implementation for JmxLruCache MBean
author
Krishnamohan Meduri (Krishna.Meduri@Sun.com)

Fields Summary
private com.sun.appserv.util.cache.LruCache
lruCache
Constructors Summary
public JmxLruCache(com.sun.appserv.util.cache.LruCache lruCache, String name)

        super(lruCache,name);
        this.lruCache = lruCache;
    
Methods Summary
public java.lang.IntegergetLruListLength()
Returns the current lenght of the LRU list

        return (Integer) lruCache.getStatByName(
                                        Constants.STAT_LRUCACHE_LIST_LENGTH);
    
public java.lang.IntegergetTrimCount()
Returns the number of entries that have been trimmed

        return (Integer) lruCache.getStatByName(
                                        Constants.STAT_LRUCACHE_TRIM_COUNT);