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 PendingTransactionsCollector 36 extends AbstractSchedulerDataCollector 37 { 38 private static final long serialVersionUID = -6032278919705621372L; 39 40 45 public PendingTransactionsCollector(String virtualDatabaseName) 46 { 47 super(virtualDatabaseName); 48 } 49 50 53 public long getValue(Object scheduler) 54 { 55 return ((AbstractScheduler) scheduler).getPendingTransactions(); 56 } 57 58 61 public String getDescription() 62 { 63 return Translate.get("monitoring.scheduler.pending.transactions"); 64 } 65 } 66 | Popular Tags |