|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecthudson.plugins.plot.Plot
public class Plot
Represents the configuration for a single plot. A plot can have one or more data series (lines). Each data series has one data point per build. The x-axis is always the build number. A plot has the following characteristics:
| Field Summary | |
|---|---|
String |
csvFileName
The name of the CSV file that persists the plots data. |
String |
group
Group name that this plot belongs to. |
String |
numBuilds
Number of builds back to show on this plot. |
Series[] |
series
Array of data series. |
String |
style
Optional style of plot: line, line3d, stackedArea, stackedBar, etc. |
String |
title
Title of plot. |
String |
urlNumBuilds
Number of builds back to show on this plot from url. |
String |
urlStyle
Style of plot from url. |
String |
urlTitle
Title of plot from url. |
Boolean |
urlUseDescr
Use description flag from url. |
boolean |
useDescr
Whether or not to use build descriptions as X-axis labels. |
String |
yaxis
Y-axis label. |
| Constructor Summary | |
|---|---|
Plot()
|
|
Plot(String title,
String yaxis,
String group,
String numBuilds,
String csvFileName,
String style,
boolean useDescr)
Creates a new plot with the given paramenters. |
|
| Method Summary | |
|---|---|
void |
addBuild(hudson.model.Build build,
PrintStream logger)
Called when a build completes. |
int |
compareTo(Object o)
|
String |
getCsvFileName()
|
String |
getGroup()
|
String |
getNumBuilds()
|
Series[] |
getSeries()
|
String |
getTitle()
|
String |
getURLNumBuilds()
|
String |
getYaxis()
|
boolean |
hasLegend()
|
void |
plotGraph(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Generates and writes the plot to the response output stream. |
void |
plotGraphMap(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Generates and writes the plot's clickable map to the response output stream. |
void |
setProject(hudson.model.Project project)
A reference to the project is needed to retrieve the project's root directory where the CSV file is located. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public transient String urlNumBuilds
public transient String urlTitle
public transient String urlStyle
public transient Boolean urlUseDescr
public String title
public String yaxis
public Series[] series
public String group
public String numBuilds
public String csvFileName
public String style
public boolean useDescr
| Constructor Detail |
|---|
@DataBoundConstructor
public Plot(String title,
String yaxis,
String group,
String numBuilds,
String csvFileName,
String style,
boolean useDescr)
public Plot()
| Method Detail |
|---|
public int compareTo(Object o)
compareTo in interface Comparablepublic String toString()
toString in class Objectpublic String getYaxis()
public Series[] getSeries()
public String getGroup()
public String getCsvFileName()
public String getTitle()
public boolean hasLegend()
public String getURLNumBuilds()
public String getNumBuilds()
public void setProject(hudson.model.Project project)
project - the project
public void plotGraph(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException
req - the incoming requestrsp - the response stream
IOException
public void plotGraphMap(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException
req - the incoming requestrsp - the response stream
IOException
public void addBuild(hudson.model.Build build,
PrintStream logger)
build - logger -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||