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 RequestsCollector extends AbstractBackendDataCollector 36 { 37 private static final long serialVersionUID = 8755259408666732987L; 38 39 45 public RequestsCollector(String backendName, String virtualDatabaseName) 46 { 47 super(backendName, virtualDatabaseName); 48 } 49 50 53 public long getValue(Object backend) 54 { 55 return ((DatabaseBackend) backend).getTotalRequest(); 56 } 57 58 61 public String getDescription() 62 { 63 return Translate.get("monitoring.backend.total.requests"); 64 } 65 } 66 | Popular Tags |