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 CountSelectCollector extends AbstractCacheStatsDataCollector 36 { 37 private static final long serialVersionUID = 1234123218190869192L; 38 39 44 public CountSelectCollector(String virtualDatabaseName) 45 { 46 super(virtualDatabaseName); 47 } 48 49 52 public long getValue(Object cache) 53 { 54 return ((AbstractResultCache) cache).getCacheStatistics().getSelect(); 55 } 56 57 60 public String getDescription() 61 { 62 return Translate.get("monitoring.cache.count.select"); 63 } 64 } 65 | Popular Tags |