1 24 25 package org.objectweb.jonas.server; 26 27 29 import org.objectweb.jonas_lib.JWorkManager; 30 31 33 public class WorkManagerMBean { 34 35 private JWorkManager wm; 36 37 40 public WorkManagerMBean(JWorkManager wm) { 41 this.wm = wm; 42 } 43 44 47 public int getCurrentPoolSize() { 48 return wm.getCurrentPoolSize(); 49 } 50 51 54 public int getMinPoolSize() { 55 return wm.getMinPoolSize(); 56 } 57 58 61 public int getMaxPoolSize() { 62 return wm.getMaxPoolSize(); 63 } 64 65 68 public void setMinPoolSize(int minsz) { 69 wm.setMinPoolSize(minsz); 70 } 71 72 75 public void setMaxPoolSize(int maxsz) { 76 wm.setMaxPoolSize(maxsz); 77 } 78 } | Popular Tags |