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