1 /* 2 * To change this template, choose Tools | Templates 3 * and open the template in the editor. 4 */ 5 6 import java.io.IOException; 7 import java.io.Serializable; 8 import java.net.Socket; 9 import java.rmi.server.RMIClientSocketFactory; 10 import java.util.HashMap; 11 import javax.management.MBeanServer; 12 import javax.management.MBeanServerFactory; 13 import javax.management.Notification; 14 import javax.management.NotificationBroadcasterSupport; 15 import javax.management.NotificationListener; 16 import javax.management.ObjectName; 17 import javax.management.remote.JMXConnector; 18 import javax.management.remote.JMXConnectorFactory; 19 import javax.management.remote.JMXConnectorServer; 20 import javax.management.remote.JMXConnectorServerFactory; 21 import javax.management.remote.JMXServiceURL; 22 import javax.management.remote.rmi.RMIConnectorServer; 23 24 /* | 1 /* 2 * Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * This code is free software; you can redistribute it and/or modify it 6 * under the terms of the GNU General Public License version 2 only, as 7 * published by the Free Software Foundation. 8 * 9 * This code is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 */ 23 24 25 import java.io.IOException; 26 import java.io.Serializable; 27 import java.net.Socket; 28 import java.rmi.server.RMIClientSocketFactory; 29 import java.util.HashMap; 30 import javax.management.MBeanServer; 31 import javax.management.MBeanServerFactory; 32 import javax.management.Notification; 33 import javax.management.NotificationBroadcasterSupport; 34 import javax.management.NotificationListener; 35 import javax.management.ObjectName; 36 import javax.management.remote.JMXConnector; 37 import javax.management.remote.JMXConnectorFactory; 38 import javax.management.remote.JMXConnectorServer; 39 import javax.management.remote.JMXConnectorServerFactory; 40 import javax.management.remote.JMXServiceURL; 41 import javax.management.remote.rmi.RMIConnectorServer; 42 43 /* |