1 23 24 package org.continuent.sequoia.common.jmx.monitoring.controller; 25 26 import org.continuent.sequoia.common.i18n.Translate; 27 28 33 public class ThreadsCountCollector extends AbstractControllerDataCollector 34 { 35 private static final long serialVersionUID = 1878639394354661537L; 36 37 40 public long collectValue() 41 { 42 return Thread.activeCount(); 43 } 44 45 48 public String getDescription() 49 { 50 return Translate.get("monitoring.controller.threads.number"); } 52 53 58 public ThreadsCountCollector(Object controller) 59 { 60 super(controller); 61 } 62 } 63 | Popular Tags |