1 24 25 package org.objectweb.cjdbc.common.monitor.backend; 26 27 import org.objectweb.cjdbc.common.i18n.Translate; 28 import org.objectweb.cjdbc.controller.backend.DatabaseBackend; 29 30 35 public class TransactionsCollector extends AbstractBackendDataCollector 36 { 37 40 private static final long serialVersionUID = -7454756414689230255L; 41 42 46 public TransactionsCollector(String backendName, String virtualDatabaseName) 47 { 48 super(backendName, virtualDatabaseName); 49 } 50 51 54 public long getValue(Object backend) 55 { 56 return ((DatabaseBackend) backend).getTotalTransactions(); 57 } 58 59 62 public String getDescription() 63 { 64 return Translate.get("monitoring.backend.total.transactions"); 65 } 66 } 67 | Popular Tags |