1 16 package org.jmanage.core.modules.jsr160; 17 18 import org.jmanage.core.management.*; 19 import org.jmanage.core.management.ObjectName; 20 import org.jmanage.core.modules.JMXServerConnection; 21 22 import javax.management.*; 23 import javax.management.remote.JMXConnector ; 24 import java.util.*; 25 import java.io.IOException ; 26 27 32 public class JSR160ServerConnection extends JMXServerConnection{ 33 34 private final JMXConnector jmxc; 35 private final MBeanServerConnection mbeanServer; 36 37 public JSR160ServerConnection(JMXConnector jmxc, 38 MBeanServerConnection mbeanServer) 39 throws IOException { 40 super(mbeanServer, MBeanServerConnection.class); 41 assert jmxc != null; 42 this.jmxc = jmxc; 43 this.mbeanServer = mbeanServer; 44 } 45 46 49 public void close() throws IOException { 50 jmxc.close(); 51 } 52 } 53 54 55 | Popular Tags |