1 23 24 28 29 package com.sun.appserv.util.cache.mbeans; 30 31 import com.sun.appserv.util.cache.LruCache; 32 import com.sun.appserv.util.cache.Constants; 33 39 public class JmxLruCache extends JmxBaseCache implements JmxLruCacheMBean { 40 41 private LruCache lruCache; 42 43 public JmxLruCache(LruCache lruCache, String name) { 44 super(lruCache,name); 45 this.lruCache = lruCache; 46 } 47 50 public Integer getLruListLength() { 51 return (Integer ) lruCache.getStatByName( 52 Constants.STAT_LRUCACHE_LIST_LENGTH); 53 } 54 55 58 public Integer getTrimCount() { 59 return (Integer ) lruCache.getStatByName( 60 Constants.STAT_LRUCACHE_TRIM_COUNT); 61 } 62 } 63 | Popular Tags |