1 24 25 package org.objectweb.cjdbc.common.monitor.scheduler; 26 27 import org.objectweb.cjdbc.common.i18n.Translate; 28 import org.objectweb.cjdbc.controller.scheduler.AbstractScheduler; 29 30 35 public class NumberRequestsCollector extends AbstractSchedulerDataCollector 36 { 37 38 private static final long serialVersionUID = 3669739041738982333L; 39 40 45 public NumberRequestsCollector(String virtualDatabaseName) 46 { 47 super(virtualDatabaseName); 48 } 49 50 53 public long getValue(Object scheduler) 54 { 55 AbstractScheduler sch = ((AbstractScheduler) scheduler); 56 return sch.getNumberRead() + sch.getNumberWrite(); 57 } 58 59 62 public String getDescription() 63 { 64 return Translate.get("monitoring.scheduler.number.requests"); 65 } 66 } 67 | Popular Tags |