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