Package hudson.plugins.performance
Class PerformanceReportMap
java.lang.Object
hudson.plugins.performance.PerformanceReportMap
- All Implemented Interfaces:
ModelObject
Root object of a performance report.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static interface
-
Constructor Summary
ConstructorsConstructorDescriptionPerformanceReportMap
(PerformanceBuildAction buildAction, TaskListener listener) PerformanceReportMap
(PerformanceBuildAction buildAction, TaskListener listener, boolean isTopLevel) Parses the reports and build aPerformanceReportMap
. -
Method Summary
Modifier and TypeMethodDescriptionprotected org.jfree.chart.JFreeChart
createErrorsChart
(org.jfree.data.category.CategoryDataset dataset) protected org.jfree.chart.JFreeChart
createRespondingTimeChart
(org.jfree.data.category.CategoryDataset dataset, int legendLimit) protected org.jfree.chart.JFreeChart
createSummarizerChart
(org.jfree.data.category.CategoryDataset dataset) protected org.jfree.chart.JFreeChart
createThroughputChart
(org.jfree.data.category.CategoryDataset dataset) createTrendReportGraphs
(org.kohsuke.stapler.StaplerRequest request) void
doErrorsGraph
(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) void
doRespondingTimeGraph
(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) void
doRespondingTimeGraphPerTestCaseMode
(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) void
doSummarizerGraph
(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) void
doThroughputGraph
(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) Run<?,
?> getBuild()
protected Run<?,
?> getBuild
(int buildNumber) getDynamic
(String link, org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerRequest response) getPerformanceReport
(String performanceReportName) Give the Performance report with the parameter for name in Beanstatic String
static String
getPerformanceReportFileRelativePath
(String parserDisplayName, String reportFileName) protected PerformanceReport
getPerformanceReportForBuild
(Run<?, ?> build, String key) protected PerformancePublisher
protected PerformanceReportMap
getReportMap
(Run<?, ?> build) getUriReport
(String uriReport) Get a URI report within a Performance report fileboolean
boolean
boolean
boolean
Verify if the PerformanceReport exist the performanceReportName must to be like it is in the buildprotected void
parseReports
(Run<?, ?> build, TaskListener listener, PerformanceReportMap.PerformanceReportCollector collector, String filename) void
setBuildAction
(PerformanceBuildAction buildAction) void
setPerformanceReportMap
(Map<String, PerformanceReport> performanceReportMap)
-
Constructor Details
-
PerformanceReportMap
public PerformanceReportMap(PerformanceBuildAction buildAction, TaskListener listener) throws IOException - Throws:
IOException
-
PerformanceReportMap
public PerformanceReportMap(PerformanceBuildAction buildAction, TaskListener listener, boolean isTopLevel) throws IOException Parses the reports and build aPerformanceReportMap
.- Throws:
IOException
- If a report fails to parse.
-
-
Method Details
-
getBuild
-
getDisplayName
- Specified by:
getDisplayName
in interfaceModelObject
-
getPerformanceListOrdered
-
getPublisher
-
ifModeThroughputUsed
public boolean ifModeThroughputUsed() -
ifShowTrendGraphsUsed
public boolean ifShowTrendGraphsUsed() -
ifModePerformancePerTestCaseUsed
public boolean ifModePerformancePerTestCaseUsed() -
getPerformanceReportMap
-
getPerformanceReport
Give the Performance report with the parameter for name in Bean
- Parameters:
performanceReportName
-- Returns:
-
getUriReport
Get a URI report within a Performance report file- Parameters:
uriReport
- "Performance report file name";"URI name"- Returns:
-
getUrlName
-
setBuildAction
-
setPerformanceReportMap
-
getPerformanceReportFileRelativePath
-
getPerformanceReportDirRelativePath
-
isFailed
Verify if the PerformanceReport exist the performanceReportName must to be like it is in the build
- Parameters:
performanceReportName
-- Returns:
- boolean
-
doRespondingTimeGraph
public void doRespondingTimeGraph(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) throws IOException - Throws:
IOException
-
doThroughputGraph
public void doThroughputGraph(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) throws IOException - Throws:
IOException
-
createThroughputChart
protected org.jfree.chart.JFreeChart createThroughputChart(org.jfree.data.category.CategoryDataset dataset) -
doRespondingTimeGraphPerTestCaseMode
public void doRespondingTimeGraphPerTestCaseMode(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) throws IOException - Throws:
IOException
-
doErrorsGraph
public void doErrorsGraph(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) throws IOException - Throws:
IOException
-
createErrorsChart
protected org.jfree.chart.JFreeChart createErrorsChart(org.jfree.data.category.CategoryDataset dataset) -
createRespondingTimeChart
protected org.jfree.chart.JFreeChart createRespondingTimeChart(org.jfree.data.category.CategoryDataset dataset, int legendLimit) -
doSummarizerGraph
public void doSummarizerGraph(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) throws IOException - Throws:
IOException
-
createSummarizerChart
protected org.jfree.chart.JFreeChart createSummarizerChart(org.jfree.data.category.CategoryDataset dataset) -
parseReports
protected void parseReports(Run<?, ?> build, TaskListener listener, PerformanceReportMap.PerformanceReportCollector collector, String filename) throws IOException- Throws:
IOException
-
getReportMap
-
getPerformanceReportForBuild
-
getBuild
-
getDynamic
-
createTrendReportGraphs
-