Package org.alfresco.repo.management
Class JmxDumpUtil
java.lang.Object
org.alfresco.repo.management.JmxDumpUtil
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final StringPlace holder for protected values (generally passwords). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voiddumpConnection(MBeanServerConnection connection, PrintWriter out) Dumps a local or remote MBeanServer's entire object tree for support purposes.static StringupdateOSNameAttributeForLinux(String osName) Adds a Linux version
-
Field Details
-
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
Adds a Linux version- Parameters:
osName- os.name attribute- Returns:
- String
-