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 PendingRequestsCollector extends AbstractBackendDataCollector 35 { 36 private static final long serialVersionUID = 2088946444040664408L; 37 38 42 public PendingRequestsCollector(String backendName, String virtualDatabaseName) 43 { 44 super(backendName, virtualDatabaseName); 45 } 46 47 50 public long getValue(Object backend) 51 { 52 return ((DatabaseBackend) backend).getPendingRequests().size(); 53 } 54 55 58 public String getDescription() 59 { 60 return Translate.get("monitoring.backend.pending.requests"); 61 } 62 } 63 | Popular Tags |