1 16 package org.mortbay.util.jmx; 17 18 import javax.management.MBeanException ; 19 20 import org.mortbay.util.ThreadPool; 21 22 23 24 29 public class ThreadPoolMBean extends LifeCycleMBean 30 { 31 32 public ThreadPoolMBean() 33 throws MBeanException 34 { 35 super(); 36 } 37 38 39 public ThreadPoolMBean(ThreadPool object) 40 throws MBeanException 41 { 42 super(object); 43 } 44 45 46 47 protected void defineManagedResource() 48 { 49 super.defineManagedResource(); 50 defineAttribute("name"); 51 defineAttribute("poolName"); 52 defineAttribute("threads"); 53 defineAttribute("idleThreads"); 54 defineAttribute("minThreads"); 55 defineAttribute("maxThreads"); 56 defineAttribute("maxIdleTimeMs"); 57 defineAttribute("threadsPriority"); 58 } 59 } 60 | Popular Tags |