1 24 25 package org.objectweb.cjdbc.common.monitor.cache; 26 27 import org.objectweb.cjdbc.common.i18n.Translate; 28 import org.objectweb.cjdbc.controller.cache.result.AbstractResultCache; 29 30 35 public class CacheEntriesCollector extends AbstractCacheStatsDataCollector 36 { 37 private static final long serialVersionUID = 8773640943678418819L; 38 39 44 public CacheEntriesCollector(String virtualDatabaseName) 45 { 46 super(virtualDatabaseName); 47 } 48 49 52 public long getValue(Object cache) 53 { 54 return ((AbstractResultCache) cache).getCacheSize(); 55 } 56 57 60 public String getDescription() 61 { 62 return Translate.get("monitoring.cache.number.entries"); 63 } 64 } 65 | Popular Tags |