1 24 package org.objectweb.cjdbc.common.monitor.backend; 25 26 import org.objectweb.cjdbc.common.i18n.Translate; 27 import org.objectweb.cjdbc.controller.backend.DatabaseBackend; 28 29 34 public class ActiveTransactionCollector extends AbstractBackendDataCollector 35 { 36 private static final long serialVersionUID = -4163697846536844217L; 37 38 42 public ActiveTransactionCollector(String backendName, 43 String virtualDatabaseName) 44 { 45 super(backendName, virtualDatabaseName); 46 } 47 48 55 public long getValue(Object backend) 56 { 57 return ((DatabaseBackend) backend).getActiveTransactions().size(); 58 } 59 60 63 public String getDescription() 64 { 65 return Translate.get("monitoring.backend.active.transactions"); 66 } 67 68 } 69 | Popular Tags |