1 24 25 package org.objectweb.cjdbc.common.monitor.controller; 26 27 import org.objectweb.cjdbc.common.i18n.Translate; 28 import org.objectweb.cjdbc.controller.core.Controller; 29 30 35 public class ControllerWorkerPendingQueueCollector 36 extends AbstractControllerDataCollector 37 { 38 private static final long serialVersionUID = 1948732510266075664L; 39 40 43 public long collectValue() 44 { 45 return ((Controller) controller).getConnectionThread() 46 .getControllerServerThreadPendingQueueSize(); 47 } 48 49 52 public String getDescription() 53 { 54 return Translate.get("monitoring.controller.pending.queue"); 55 } 56 57 63 public ControllerWorkerPendingQueueCollector(Object controller) 64 { 65 super(controller); 66 } 67 } 68 | Popular Tags |