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 ControllerIdleThreadsCollector 36 extends AbstractControllerDataCollector 37 { 38 private static final long serialVersionUID = -5232047273378868085L; 39 40 43 public long collectValue() 44 { 45 return ((Controller) controller).getConnectionThread() 46 .getIdleWorkerThreads(); 47 } 48 49 52 public String getDescription() 53 { 54 return Translate.get("monitoring.controller.idle.worker.threads"); 55 } 56 57 62 public ControllerIdleThreadsCollector(Object controller) 63 { 64 super(controller); 65 } 66 } 67 | Popular Tags |