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

JmxMultiLruCache

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

Fields Summary
private com.sun.appserv.util.cache.MultiLruCache
multiLruCache
Constructors Summary
public JmxMultiLruCache(com.sun.appserv.util.cache.MultiLruCache multiLruCache, String name)

        super(multiLruCache,name);
        this.multiLruCache = multiLruCache;
    
Methods Summary
public java.lang.Integer[]getSegmentListLength()
Returns the legnth of the segment list

        return (Integer[]) multiLruCache.getStatByName(
                                        Constants.STAT_MULTILRUCACHE_SEGMENT_LIST_LENGTH);
    
public java.lang.IntegergetSegmentSize()
Returns the size of each segment

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

        return (Integer) multiLruCache.getStatByName(
                                        Constants.STAT_MULTILRUCACHE_TRIM_COUNT);