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 ActiveConnectionsCollector extends AbstractBackendDataCollector 36 { 37 private static final long serialVersionUID = -819859983753949567L; 38 39 45 public ActiveConnectionsCollector(String backendName, 46 String virtualDatabaseName) 47 { 48 super(backendName, virtualDatabaseName); 49 } 50 51 58 public long getValue(Object backend) 59 { 60 return ((DatabaseBackend) backend).getTotalActiveConnections(); 61 } 62 63 66 public String getDescription() 67 { 68 return Translate.get("monitoring.backend.active.connections"); 69 } 70 } | Popular Tags |