Class JMeterParser
- java.lang.Object
-
- hudson.plugins.performance.parsers.PerformanceReportParser
-
- hudson.plugins.performance.parsers.AbstractParser
-
- hudson.plugins.performance.parsers.JMeterParser
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<PerformanceReportParser>
public class JMeterParser extends AbstractParser
Parser for JMeter.- Author:
- Kohsuke Kawaguchi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JMeterParser.DescriptorImpl
-
Nested classes/interfaces inherited from class hudson.plugins.performance.parsers.AbstractParser
AbstractParser.ObjectInputStreamWithClassMapping
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
-
Fields inherited from class hudson.plugins.performance.parsers.AbstractParser
filterRegex, format, isNumberDateFormat, percentiles
-
Fields inherited from class hudson.plugins.performance.parsers.PerformanceReportParser
baselineBuild, excludeResponseTime, glob, reportURL, showTrendGraphs
-
-
Constructor Summary
Constructors Constructor Description JMeterParser(String glob, String percentiles)
JMeterParser(String glob, String percentiles, String filterRegex)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDefaultGlobPattern()
static boolean
isXmlFile(File file)
Utility method that checks if the provided file has XML content.-
Methods inherited from class hudson.plugins.performance.parsers.AbstractParser
clearDateFormat, createPerformanceReport, loadSerializedReport, parse, parseTimestamp, saveSerializedReport
-
Methods inherited from class hudson.plugins.performance.parsers.PerformanceReportParser
all, getDescriptor, getReportName, isExcludeResponseTime, isShowTrendGraphs, setBaselineBuild, setExcludeResponseTime, setShowTrendGraphs
-
-
-
-
Method Detail
-
getDefaultGlobPattern
public String getDefaultGlobPattern()
- Specified by:
getDefaultGlobPattern
in classPerformanceReportParser
-
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
, otherwisefalse
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, otherwisefalse
.- Throws:
IOException
-
-