1 23 24 28 29 package com.sun.appserv.util.cache.mbeans; 30 31 import com.sun.appserv.util.cache.MultiLruCache; 32 import com.sun.appserv.util.cache.Constants; 33 39 public class JmxMultiLruCache extends JmxBaseCache 40 implements JmxMultiLruCacheMBean { 41 42 private MultiLruCache multiLruCache; 43 44 public JmxMultiLruCache(MultiLruCache multiLruCache, String name) { 45 super(multiLruCache,name); 46 this.multiLruCache = multiLruCache; 47 } 48 49 52 public Integer getTrimCount() { 53 return (Integer ) multiLruCache.getStatByName( 54 Constants.STAT_MULTILRUCACHE_TRIM_COUNT); 55 } 56 57 60 public Integer getSegmentSize() { 61 return (Integer ) multiLruCache.getStatByName( 62 Constants.STAT_MULTILRUCACHE_SEGMENT_SIZE); 63 } 64 65 68 public Integer [] getSegmentListLength() { 69 return (Integer []) multiLruCache.getStatByName( 70 Constants.STAT_MULTILRUCACHE_SEGMENT_LIST_LENGTH); 71 } 72 } 73 | Popular Tags |