2362N/A * Copyright (c) 2004, 2008, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 2362N/A * published by the Free Software Foundation. Oracle designates this 0N/A * particular file as subject to the "Classpath" exception as provided 2362N/A * by Oracle in the LICENSE file that accompanied this code. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2362N/A * or visit www.oracle.com if you need additional information or have any 0N/A * A utility class to support the exporting and importing of the address 0N/A * of a connector server using the instrumentation buffer. 0N/A "sun.management.JMXConnectorServer.address";
0N/A * The format of the jvmstat counters representing the properties of 0N/A * a given out-of-the-box JMX remote connector will be as follows: 0N/A * sun.management.JMXConnectorServer.<counter>.<key>=<value> 0N/A * counter = index computed by this class which uniquely identifies 0N/A * an out-of-the-box JMX remote connector running in this 0N/A * Java virtual machine. 0N/A * exportRemote() method. 0N/A * sun.management.JMXConnectorServer.0.remoteAddress=service:jmx:rmi:///jndi/rmi://myhost:5000/jmxrmi 0N/A * sun.management.JMXConnectorServer.0.authenticate=false 0N/A * sun.management.JMXConnectorServer.0.ssl=false 0N/A * sun.management.JMXConnectorServer.0.sslRegistry=false 0N/A * sun.management.JMXConnectorServer.0.sslNeedClientAuth=false "sun.management.JMXConnectorServer.";
* JMX remote connector counter (it will be incremented every * time a new out-of-the-box JMX remote connector is created). * Exports the specified connector address to the instrumentation buffer * so that it can be read by this or other Java virtual machines running * @param address The connector address. * Imports the connector address from the instrument buffer * of the specified Java virtual machine. * @param vmid an identifier that uniquely identifies a local Java virtual * machine, or <code>0</code> to indicate the current Java virtual machine. * @return the value of the connector address, or <code>null</code> if the * target VM has not exported a connector address. * @throws IOException An I/O error occurred while trying to acquire the * instrumentation buffer. * Exports the specified remote connector address and associated * configuration properties to the instrumentation buffer so that * it can be read by this or other Java virtual machines running * @param properties The remote connector address properties. * Imports the remote connector address and associated * configuration properties from the instrument buffer * of the specified Java virtual machine. * @param vmid an identifier that uniquely identifies a local Java virtual * machine, or <code>0</code> to indicate the current Java virtual machine. * @return a map containing the remote connector's properties, or an empty * map if the target VM has not exported the remote connector's properties. * @throws IOException An I/O error occurred while trying to acquire the * instrumentation buffer.