1 28 29 package com.caucho.jmx; 30 31 import com.caucho.log.Log; 32 import com.caucho.util.L10N; 33 34 import java.util.logging.Logger ; 35 36 39 public class LocalMBeanServer extends AbstractMBeanServer { 40 private static final L10N L = new L10N(LocalMBeanServer.class); 41 private static final Logger log = Log.open(LocalMBeanServer.class); 42 43 private ClassLoader _loader; 44 45 48 public LocalMBeanServer() 49 { 50 this(Thread.currentThread().getContextClassLoader()); 51 } 52 53 56 public LocalMBeanServer(ClassLoader loader) 57 { 58 super(Jmx.getMBeanServer().getDefaultDomain()); 59 60 _loader = loader; 61 } 62 63 66 protected MBeanContext getContext(ClassLoader loader) 67 { 68 AbstractMBeanServer envServer = Jmx.getMBeanServer(); 69 70 return envServer.getContext(_loader); 71 } 72 73 76 protected MBeanContext getExistingContext(ClassLoader loader) 77 { 78 AbstractMBeanServer envServer = Jmx.getMBeanServer(); 79 80 return envServer.getExistingContext(_loader); 81 } 82 83 86 protected void removeContext(ClassLoader loader, MBeanContext context) 87 { 88 } 89 90 93 public String toString() 94 { 95 return "LocalMBeanServer[]"; 96 } 97 } 98 | Popular Tags |