Class JmxDumpUtil

java.lang.Object
org.alfresco.repo.management.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 Details

    • PROTECTED_VALUE

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

    • JmxDumpUtil

      public JmxDumpUtil()
  • Method Details

    • 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