|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.serenitec.util.AbstractResultAction<T>
T - type of the result of this actionpublic abstract class AbstractResultAction<T extends EntriesProvider>
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)
Creates a new instance of AbstractResultAction. |
|
AbstractResultAction(hudson.model.AbstractBuild<?,?> owner,
HealthReportBuilder healthReportBuilder,
T result)
Creates a new instance of AbstractResultAction. |
|
| Method Summary | |
|---|---|
protected org.jfree.data.category.CategoryDataset |
buildDataSet(boolean useHealthBuilder)
Returns the data set that represents the result. |
protected org.jfree.data.category.CategoryDataset |
buildDetailsDataSet(boolean useHealthBuilder,
java.lang.String param)
|
void |
doDetailsGraph(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response,
java.lang.String param)
Generates a PNG image for the repository trend |
void |
doGraph(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response,
int height)
Generates a PNG image for the result trend. |
void |
doGraphMap(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response,
int height)
Generates a PNG image for the result trend. |
void |
doPersonalGraph(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response,
int height,
java.lang.String type)
Generates a PNG image for the result personal trend. |
void |
doRulesRepartitionPie(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response,
int size,
int n1,
int n2,
java.lang.String titre)
Generates a PNG image for the result personal trend. |
hudson.model.HealthReport |
getBuildHealth()
|
protected abstract SerenitecDescriptor |
getDescriptor()
Returns the descriptor of the associated plug-in. |
HealthReportBuilder |
getHealthReportBuilder()
Returns the associated health report builder. |
java.lang.String |
getIconFileName()
|
hudson.model.AbstractBuild<?,?> |
getOwner()
Returns the associated build of this action. |
protected AbstractResultAction<T> |
getPreviousBuild()
Gets the result of a previous build if it's recorded, or null if not. |
T |
getResult()
Returns the current result of this action. |
java.lang.Object |
getTarget()
|
java.lang.String |
getUrlName()
|
boolean |
hasPreviousResultAction()
Returns whether a previous build already has a result action of this type attached. |
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.serenitec.util.ToolTipProvider |
|---|
getMultipleItemsTooltip, getSingleItemTooltip |
| Methods inherited from interface hudson.plugins.serenitec.util.ResultAction |
|---|
getPreviousResultAction |
| Methods inherited from interface hudson.model.Action |
|---|
getDisplayName |
| Constructor Detail |
|---|
public AbstractResultAction(hudson.model.AbstractBuild<?,?> owner,
HealthReportBuilder healthReportBuilder)
AbstractResultAction.
owner - the associated build of this actionhealthReportBuilder - health builder to use
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 |
|---|
protected org.jfree.data.category.CategoryDataset buildDataSet(boolean useHealthBuilder)
useHealthBuilder - determines whether the health builder should be used to create the data set
protected org.jfree.data.category.CategoryDataset buildDetailsDataSet(boolean useHealthBuilder,
java.lang.String param)
public final void doGraph(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response,
int height)
throws java.io.IOException
doGraph in interface ResultAction<T extends EntriesProvider>request - Stapler requestresponse - Stapler responseheight - the height of the trend graph
java.io.IOException - in case of an error
public final void doPersonalGraph(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response,
int height,
java.lang.String type)
throws java.io.IOException
doPersonalGraph in interface ResultAction<T extends EntriesProvider>request - Stapler requestresponse - Stapler responseheight - the height of the trend graph
java.io.IOException - in case of an error
public final void doRulesRepartitionPie(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response,
int size,
int n1,
int n2,
java.lang.String titre)
throws java.io.IOException
doRulesRepartitionPie in interface ResultAction<T extends EntriesProvider>request - Stapler requestresponse - Stapler responseheight - the height of the trend graph
java.io.IOException - in case of an error
public void doDetailsGraph(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response,
java.lang.String param)
throws java.io.IOException
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,
int height)
throws java.io.IOException
doGraphMap in interface ResultAction<T extends EntriesProvider>request - Stapler requestresponse - Stapler responseheight - the height of the trend graph
java.io.IOException - in case of an errorpublic final hudson.model.HealthReport getBuildHealth()
getBuildHealth in interface hudson.model.HealthReportingActionprotected abstract SerenitecDescriptor getDescriptor()
public final HealthReportBuilder getHealthReportBuilder()
getHealthReportBuilder in interface ResultAction<T extends EntriesProvider>public java.lang.String getIconFileName()
getIconFileName in interface hudson.model.Actionpublic final hudson.model.AbstractBuild<?,?> getOwner()
protected AbstractResultAction<T> getPreviousBuild()
null if not.
nullpublic final T getResult()
getResult in interface ResultAction<T extends EntriesProvider>public final java.lang.Object getTarget()
getTarget in interface org.kohsuke.stapler.StaplerProxypublic java.lang.String getUrlName()
getUrlName in interface hudson.model.Actionpublic boolean hasPreviousResultAction()
hasPreviousResultAction in interface ResultAction<T extends EntriesProvider>true a previous build already has a result action of this type attachedpublic final void setResult(T result)
setResult in interface ResultAction<T extends EntriesProvider>result - the result to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||