Package fr.dyade.aaa.common.monitoring
Class DumpAttributes
- java.lang.Object
-
- fr.dyade.aaa.common.monitoring.DumpAttributes
-
public final class DumpAttributes extends Object
TheDumpAttributesclass allows to watch all JMX attributes of a specified domain and store the corresponding values in a file.
-
-
Constructor Summary
Constructors Constructor Description DumpAttributes()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static voidaddRecord(StringBuilder strbuf, String mbean, String att, Object value)Records information about the specified attribute.static StringBuilderdumpAllStackTraces(StringBuilder dump)Adds a complete Thread dump to the StringBuilder given in parameter.static StringBuilderdumpAttributes(String name, StringBuilder strbuf)
-
-
-
Field Detail
-
logger
public static final Logger logger
-
-
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.
-
dumpAttributes
public static StringBuilder dumpAttributes(String name, StringBuilder strbuf)
-
-