Class AbstractParser
java.lang.Object
hudson.plugins.performance.parsers.PerformanceReportParser
hudson.plugins.performance.parsers.AbstractParser
- All Implemented Interfaces:
ExtensionPoint
,Describable<PerformanceReportParser>
- Direct Known Subclasses:
IagoParser
,JMeterCsvParser
,JMeterParser
,JmeterSummarizerParser
,JUnitParser
,LoadRunnerParser
,LocustParser
,TaurusParser
,WrkSummarizerParser
An abstraction for parsing data to PerformanceReport instances. This class
provides functionality that optimizes the parsing process, such as caching as
well as saving/loaded parsed data in serialized form to/from disc.
- Author:
- Guus der Kinderen, guus.der.kinderen@gmail.com
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected SimpleDateFormat
protected boolean
protected String
Fields inherited from class hudson.plugins.performance.parsers.PerformanceReportParser
baselineBuild, excludeResponseTime, glob, reportURL, showTrendGraphs
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
protected PerformanceReport
protected static PerformanceReport
loadSerializedReport
(File reportFile) Returns a PerformanceReport instance for the provided report file, based on previously serialized data.parse
(Run<?, ?> build, Collection<File> reports, TaskListener listener) Parses the specified reports intoPerformanceReport
s.parseTimestamp
(String timestamp) protected static void
saveSerializedReport
(File reportFile, PerformanceReport report) Saves a PerformanceReport instance as serialized data into a file on disc.Methods inherited from class hudson.plugins.performance.parsers.PerformanceReportParser
all, getDefaultGlobPattern, getDescriptor, getReportName, isExcludeResponseTime, isShowTrendGraphs, setBaselineBuild, setExcludeResponseTime, setShowTrendGraphs
-
Field Details
-
isNumberDateFormat
protected boolean isNumberDateFormat -
format
-
percentiles
-
filterRegex
-
-
Constructor Details
-
AbstractParser
-
-
Method Details
-
parse
public Collection<PerformanceReport> parse(Run<?, ?> build, Collection<File> reports, TaskListener listener) throws IOExceptionDescription copied from class:PerformanceReportParser
Parses the specified reports intoPerformanceReport
s.- Specified by:
parse
in classPerformanceReportParser
- Throws:
IOException
-
loadSerializedReport
Returns a PerformanceReport instance for the provided report file, based on previously serialized data.This method first attempts to load data from an internal cache. If the data is not in cache, data is obtained from a file on disc.
When no PerformanceReport instance has previously been serialized (or when such data cannot be read, for instance because of class file changes), this method returns null.
- Parameters:
reportFile
- Report for which to return data. Cannot be null.- Returns:
- deserialized data, possibly null.
-
saveSerializedReport
Saves a PerformanceReport instance as serialized data into a file on disc.- Parameters:
reportFile
- The file from which the original data is obtained (not the file into which serialized data is to be saved!) Cannot be null.report
- The instance to serialize. Cannot be null.
-
clearDateFormat
public void clearDateFormat() -
parseTimestamp
-
createPerformanceReport
-