Class DumpAttributes


  • public final class DumpAttributes
    extends Object
    The DumpAttributes class allows to watch all JMX attributes of a specified domain and store the corresponding values in a file.
    • Field Detail

      • logger

        public static final Logger logger
    • Constructor Detail

      • DumpAttributes

        public DumpAttributes()
    • Method Detail

      • addRecord

        static void addRecord​(StringBuilder strbuf,
                              String mbean,
                              String att,
                              Object value)
        Records information about the specified attribute.
        Parameters:
        strbuf - A SringBuilder to write into.
        mbean - The name of the related mbean.
        att - The name of the related attribute.
        value - The value of the related attribute.
      • dumpAllStackTraces

        public static StringBuilder dumpAllStackTraces​(StringBuilder dump)
        Adds a complete Thread dump to the StringBuilder given in parameter.
        Parameters:
        dump - The StringBuilder to append.
        Returns:
        The StringBuilder given in parameter.