Class PerformanceReportParser
- java.lang.Object
-
- hudson.plugins.performance.parsers.PerformanceReportParser
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<PerformanceReportParser>
- Direct Known Subclasses:
AbstractParser
public abstract class PerformanceReportParser extends Object implements Describable<PerformanceReportParser>, ExtensionPoint
Parses performance result files intoPerformanceReport
s. This object is persisted withPerformancePublisher
into the project configuration.Subtypes can define additional parser-specific parameters as instance fields.
- Author:
- Kohsuke Kawaguchi
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
Fields Modifier and Type Field Description protected int
baselineBuild
protected boolean
excludeResponseTime
Exclude response time of errored samplesString
glob
GLOB patterns that specify the performance report.String
reportURL
protected boolean
showTrendGraphs
-
Constructor Summary
Constructors Modifier Constructor Description protected
PerformanceReportParser(String glob)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static ExtensionList<PerformanceReportParser>
all()
All registered implementations.abstract String
getDefaultGlobPattern()
PerformanceReportParserDescriptor
getDescriptor()
String
getReportName()
boolean
isExcludeResponseTime()
boolean
isShowTrendGraphs()
abstract Collection<PerformanceReport>
parse(Run<?,?> build, Collection<File> reports, TaskListener listener)
Parses the specified reports intoPerformanceReport
s.void
setBaselineBuild(int baselineBuild)
void
setExcludeResponseTime(boolean excludeResponseTime)
void
setShowTrendGraphs(boolean showTrendGraphs)
-
-
-
Field Detail
-
glob
public final String glob
GLOB patterns that specify the performance report.
-
reportURL
public String reportURL
-
excludeResponseTime
protected boolean excludeResponseTime
Exclude response time of errored samples
-
showTrendGraphs
protected boolean showTrendGraphs
-
baselineBuild
protected int baselineBuild
-
-
Constructor Detail
-
PerformanceReportParser
protected PerformanceReportParser(String glob)
-
-
Method Detail
-
getDescriptor
public PerformanceReportParserDescriptor getDescriptor()
- Specified by:
getDescriptor
in interfaceDescribable<PerformanceReportParser>
-
parse
public abstract Collection<PerformanceReport> parse(Run<?,?> build, Collection<File> reports, TaskListener listener) throws IOException
Parses the specified reports intoPerformanceReport
s.- Throws:
IOException
-
getDefaultGlobPattern
public abstract String getDefaultGlobPattern()
-
all
public static ExtensionList<PerformanceReportParser> all()
All registered implementations.
-
getReportName
public String getReportName()
-
isExcludeResponseTime
public boolean isExcludeResponseTime()
-
setExcludeResponseTime
public void setExcludeResponseTime(boolean excludeResponseTime)
-
isShowTrendGraphs
public boolean isShowTrendGraphs()
-
setShowTrendGraphs
public void setShowTrendGraphs(boolean showTrendGraphs)
-
setBaselineBuild
public void setBaselineBuild(int baselineBuild)
-
-