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.JFreeChartcreateErrorsChart(org.jfree.data.category.CategoryDataset dataset) protected org.jfree.chart.JFreeChartcreateRespondingTimeChart(org.jfree.data.category.CategoryDataset dataset, int legendLimit) protected org.jfree.chart.JFreeChartcreateSummarizerChart(org.jfree.data.category.CategoryDataset dataset) protected org.jfree.chart.JFreeChartcreateThroughputChart(org.jfree.data.category.CategoryDataset dataset) createTrendReportGraphs(org.kohsuke.stapler.StaplerRequest request) voiddoErrorsGraph(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) voiddoRespondingTimeGraph(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) voiddoRespondingTimeGraphPerTestCaseMode(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) voiddoSummarizerGraph(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) voiddoThroughputGraph(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 Stringstatic StringgetPerformanceReportFileRelativePath(String parserDisplayName, String reportFileName) protected PerformanceReportgetPerformanceReportForBuild(Run<?, ?> build, String key) protected PerformancePublisherprotected PerformanceReportMapgetReportMap(Run<?, ?> build) getUriReport(String uriReport) Get a URI report within a Performance report filebooleanbooleanbooleanbooleanVerify if the PerformanceReport exist the performanceReportName must to be like it is in the buildprotected voidparseReports(Run<?, ?> build, TaskListener listener, PerformanceReportMap.PerformanceReportCollector collector, String filename) voidsetBuildAction(PerformanceBuildAction buildAction) voidsetPerformanceReportMap(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:
getDisplayNamein 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
-