|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.findbugs.util.HealthReportBuilder
public class HealthReportBuilder
Creates a health report for integer values based on healthy and unhealthy thresholds.
HealthReport,
Serialized Form| Constructor Summary | |
|---|---|
HealthReportBuilder(AbstractHealthDescriptor healthDescriptor)
Creates a new instance of HealthReportBuilder. |
|
| Method Summary | |
|---|---|
hudson.model.HealthReport |
computeHealth(AnnotationProvider result)
Computes the healthiness of a build based on the specified results. |
protected hudson.model.HealthReport |
computeHealth(int counter,
AnnotationProvider result)
Computes the healthiness of a build based on the specified counter. |
org.jfree.chart.JFreeChart |
createGraph(boolean useHealthBuilder,
java.lang.String url,
org.jfree.data.category.CategoryDataset dataset,
ToolTipProvider toolTipProvider)
Creates a trend graph for the corresponding action using the thresholds of this health builder. |
java.util.List<java.lang.Integer> |
createSeries(int totalCount)
Creates a list of integer values used to create a three color graph showing the items per build. |
boolean |
isEnabled()
Returns whether this health report build is enabled, i.e. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HealthReportBuilder(AbstractHealthDescriptor healthDescriptor)
HealthReportBuilder.
healthDescriptor - health descriptor| Method Detail |
|---|
public hudson.model.HealthReport computeHealth(AnnotationProvider result)
healthy. Reports a health of 0% when the specified counter is
greater than unHealthy. The computation takes only annotations
of the specified severity into account.
result - annotations of the current build
protected hudson.model.HealthReport computeHealth(int counter,
AnnotationProvider result)
healthy. Reports a health of 0% when the specified counter is
greater than unHealthy.
counter - the number of items in a build that should be considered for
health computationresult - annotations of the current build
public boolean isEnabled()
true if health or failed thresholds are providedpublic java.util.List<java.lang.Integer> createSeries(int totalCount)
totalCount - total number of items
public org.jfree.chart.JFreeChart createGraph(boolean useHealthBuilder,
java.lang.String url,
org.jfree.data.category.CategoryDataset dataset,
ToolTipProvider toolTipProvider)
useHealthBuilder - if the health thresholds should be used at allurl - the URL shown in the tool tipsdataset - the data set of the values to rendertoolTipProvider - tooltip provider for the clickable map
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||