java.lang.Object
com.redhat.parodos.examples.prebuilt.migrationtoolkit.MTAAnalysisReport

public class MTAAnalysisReport extends Object
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.
  • 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