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 ClassesNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected SimpleDateFormatprotected booleanprotected StringFields inherited from class hudson.plugins.performance.parsers.PerformanceReportParser
baselineBuild, excludeResponseTime, glob, reportURL, showTrendGraphs -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected PerformanceReportprotected static PerformanceReportloadSerializedReport(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 intoPerformanceReports.parseTimestamp(String timestamp) protected static voidsaveSerializedReport(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:PerformanceReportParserParses the specified reports intoPerformanceReports.- Specified by:
parsein 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
-