Class JfrRulesReport
- java.lang.Object
-
- org.openjdk.jmc.flightrecorder.rules.report.JfrRulesReport
-
public class JfrRulesReport extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private static JfrReportPermission
OVERRIDE_PERMISSION
private static java.util.Map<java.lang.String,java.lang.String>
TRANSFORMS
-
Constructor Summary
Constructors Constructor Description JfrRulesReport()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static void
addError(org.w3c.dom.Element parent, org.w3c.dom.Element reportNode, java.lang.Throwable t)
static void
addReport(java.lang.String fileName, Severity minSeverity, boolean verbose, org.w3c.dom.Element parent)
private static void
checkAccess(JfrReportPermission p)
private static void
checkOverrideAccess()
private static org.w3c.dom.Element
createRuleNode(org.w3c.dom.Element parent, org.w3c.dom.Element reportNode, IRule rule)
private static org.w3c.dom.Element
createValueNode(org.w3c.dom.Document doc, java.lang.String name, java.lang.String value)
static void
main(java.lang.String[] args)
static void
printReport(java.lang.String formatName, Severity minSeverity, boolean verbose, boolean override, java.lang.String... fileNames)
Prints an automated analysis report for the JFR files with the specified fileNames.private static java.lang.String
toString(java.lang.Object member)
-
-
-
Field Detail
-
TRANSFORMS
private static final java.util.Map<java.lang.String,java.lang.String> TRANSFORMS
-
OVERRIDE_PERMISSION
private static final JfrReportPermission OVERRIDE_PERMISSION
-
-
Method Detail
-
checkAccess
private static void checkAccess(JfrReportPermission p) throws java.lang.SecurityException
- Throws:
java.lang.SecurityException
-
checkOverrideAccess
private static void checkOverrideAccess() throws java.lang.SecurityException
- Throws:
java.lang.SecurityException
-
main
public static void main(java.lang.String[] args) throws javax.xml.parsers.ParserConfigurationException, javax.xml.transform.TransformerException
- Throws:
javax.xml.parsers.ParserConfigurationException
javax.xml.transform.TransformerException
-
printReport
public static void printReport(java.lang.String formatName, Severity minSeverity, boolean verbose, boolean override, java.lang.String... fileNames) throws javax.xml.parsers.ParserConfigurationException, javax.xml.transform.TransformerException
Prints an automated analysis report for the JFR files with the specified fileNames.- Parameters:
formatName
- the format of the report, e.g. xml, html or text.minSeverity
- the minimum severity to report.verbose
- true for a more verbose report.override
- true to allow overriding the xslt for the transform via the context classloader (text = org/openjdk/jmc/flightrecorder/rules/report/text.xslt, html = org/openjdk/jmc/flightrecorder/rules/report/html.xslt).fileNames
- the file names of the recordings to analyze.- Throws:
java.lang.SecurityException
- if a security manager exists, the caller does not have JfrReportPermission("override"), and override was enabled.javax.xml.parsers.ParserConfigurationException
javax.xml.transform.TransformerException
-
addReport
public static void addReport(java.lang.String fileName, Severity minSeverity, boolean verbose, org.w3c.dom.Element parent)
-
toString
private static java.lang.String toString(java.lang.Object member)
-
addError
private static void addError(org.w3c.dom.Element parent, org.w3c.dom.Element reportNode, java.lang.Throwable t)
-
createRuleNode
private static org.w3c.dom.Element createRuleNode(org.w3c.dom.Element parent, org.w3c.dom.Element reportNode, IRule rule)
-
createValueNode
private static org.w3c.dom.Element createValueNode(org.w3c.dom.Document doc, java.lang.String name, java.lang.String value)
-
-