Class MTAAnalysisReport
java.lang.Object
com.redhat.parodos.examples.prebuilt.migrationtoolkit.MTAAnalysisReport
This class help parsing and representing a migration report which is assumed to be
valid html. MTA 6.1 should supply a CSV instead and is obviously preferred.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordA representation of the summary of the incidents by severity of an MTA analysis report -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionextractIncidents(String jsIssuesData) Take the data/issue_summaries.js that contains a variable with a map of severity -> list of issues.
-
Constructor Details
-
MTAAnalysisReport
public MTAAnalysisReport()
-
-
Method Details
-
extractIncidents
public static MTAAnalysisReport.AnalysisIncidents extractIncidents(String jsIssuesData) throws Exception Take the data/issue_summaries.js that contains a variable with a map of severity -> list of issues. Then extract the size of the list by the severity name. Parsing is straight forward - identify the assignment to the var and extract the value - it is a valid json map.- Parameters:
jsIssuesData-- Returns:
- AnalysisIncidents
- Throws:
Exception- - for any failure in json parsing or when there's nothing to parse
-