|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.findbugs.util.AbstractResultAction<T>
T - type of the result of this actionpublic abstract class AbstractResultAction<T>
Controls the live cycle of Hudson results. This action persists the results
of a build and displays them on the build page. The actual visualization of
the results is defined in the matching summary.jelly file.
Moreover, this class renders the results trend.
| Constructor Summary | |
|---|---|
AbstractResultAction(hudson.model.AbstractBuild<?,?> owner,
HealthReportBuilder healthReportBuilder,
T result)
Creates a new instance of AbstractResultAction. |
|
| Method Summary | |
|---|---|
protected abstract org.jfree.chart.JFreeChart |
createChart(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
Creates the chart for this action. |
void |
doGraph(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
Generates a PNG image for the result trend. |
void |
doGraphMap(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
Generates a PNG image for the result trend. |
hudson.model.HealthReport |
getBuildHealth()
|
protected abstract int |
getHealthCounter()
Returns the health counter of this result. |
HealthReportBuilder |
getHealthReportBuilder()
Returns the associated health report builder. |
java.lang.String |
getIconFileName()
|
protected abstract java.lang.String |
getIconUrl()
Returns the file name URL of the icon. |
hudson.model.AbstractBuild<?,?> |
getOwner()
Returns the associated build of this action. |
T |
getResult()
Returns the current result of this action. |
java.lang.Object |
getTarget()
|
void |
setResult(T result)
Sets the result for this build. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface hudson.plugins.findbugs.util.ResultAction |
|---|
getPreviousResultAction, hasPreviousResultAction |
| Methods inherited from interface hudson.model.Action |
|---|
getDisplayName, getUrlName |
| Constructor Detail |
|---|
public AbstractResultAction(hudson.model.AbstractBuild<?,?> owner,
HealthReportBuilder healthReportBuilder,
T result)
AbstractResultAction.
owner - the associated build of this actionhealthReportBuilder - health builder to useresult - the result of the action| Method Detail |
|---|
public final HealthReportBuilder getHealthReportBuilder()
getHealthReportBuilder in interface ResultAction<T>public final hudson.model.HealthReport getBuildHealth()
getBuildHealth in interface hudson.model.HealthReportingActionprotected abstract int getHealthCounter()
public final hudson.model.AbstractBuild<?,?> getOwner()
public final java.lang.Object getTarget()
getTarget in interface org.kohsuke.stapler.StaplerProxypublic final T getResult()
getResult in interface ResultAction<T>public final void setResult(T result)
setResult in interface ResultAction<T>result - the result to setpublic java.lang.String getIconFileName()
getIconFileName in interface hudson.model.Actionprotected abstract java.lang.String getIconUrl()
public final void doGraph(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
throws java.io.IOException
doGraph in interface ResultAction<T>request - Stapler requestresponse - Stapler response
java.io.IOException - in case of an error
public final void doGraphMap(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
throws java.io.IOException
doGraphMap in interface ResultAction<T>request - Stapler requestresponse - Stapler response
java.io.IOException - in case of an error
protected abstract org.jfree.chart.JFreeChart createChart(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
request - Stapler requestresponse - Stapler response
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||