Class JMeterParser

All Implemented Interfaces:
ExtensionPoint, Describable<PerformanceReportParser>

public class JMeterParser extends AbstractParser
Parser for JMeter.
Author:
Kohsuke Kawaguchi
  • Constructor Details

    • JMeterParser

      public JMeterParser(String glob, String percentiles)
    • JMeterParser

      @DataBoundConstructor public JMeterParser(String glob, String percentiles, String filterRegex)
  • Method Details

    • getDefaultGlobPattern

      public String getDefaultGlobPattern()
      Specified by:
      getDefaultGlobPattern in class PerformanceReportParser
    • isXmlFile

      public static boolean isXmlFile(File file) throws IOException
      Utility method that checks if the provided file has XML content.

      This implementation looks for the first non-empty file. If an XML prolog appears there, this method returns true, otherwise false is returned.

      Parameters:
      file - File from which the content is to e analyzed. Cannot be null.
      Returns:
      true if the file content has been determined to be XML, otherwise false.
      Throws:
      IOException