Class JmxDumpUtil


  • public class JmxDumpUtil
    extends Object
    A utility class providing a method to dump a local or remote MBeanServer's entire object tree for support purposes. Nested arrays and CompositeData objects in MBean attribute values are handled.
    Author:
    dward
    • Field Detail

      • PROTECTED_VALUE

        public static final String PROTECTED_VALUE
        Place holder for protected values (generally passwords).
        See Also:
        Constant Field Values
    • Constructor Detail

      • JmxDumpUtil

        public JmxDumpUtil()
    • Method Detail

      • dumpConnection

        public static void dumpConnection​(MBeanServerConnection connection,
                                          PrintWriter out)
                                   throws IOException
        Dumps a local or remote MBeanServer's entire object tree for support purposes. Nested arrays and CompositeData objects in MBean attribute values are handled.
        Parameters:
        connection - the server connection (or server itself)
        out - PrintWriter to write the output to
        Throws:
        IOException - Signals that an I/O exception has occurred.
      • updateOSNameAttributeForLinux

        public static String updateOSNameAttributeForLinux​(String osName)
        Adds a Linux version
        Parameters:
        osName - os.name attribute
        Returns:
        String