|
|||||||||
| 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 alway the build number. A plot has the following characteristics:
| Field Summary | |
|---|---|
java.lang.String |
csvFileName
The name of the CSV file that persists the plots data. |
java.lang.String |
group
Group name that this plot belongs to. |
java.lang.String |
numBuilds
Number of builds back to show on this plot. |
Series[] |
series
Array of data series. |
java.lang.String |
title
Title of plot. |
java.lang.String |
yaxis
Y-axis label. |
| Constructor Summary | |
|---|---|
Plot()
|
|
Plot(java.lang.String title,
java.lang.String yaxis,
Series[] series,
java.lang.String group,
java.lang.String numBuilds,
java.lang.String csvFileName)
Creates a new plot with the given paramenters. |
|
| Method Summary | |
|---|---|
void |
addBuild(hudson.model.Build build,
java.io.PrintStream logger)
Called when a build completes. |
int |
compareTo(java.lang.Object o)
|
java.lang.String |
getCsvFileName()
|
java.lang.String |
getGroup()
|
java.lang.String |
getNumBuilds()
|
Series[] |
getSeries()
|
java.lang.String |
getTitle()
|
java.lang.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. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public java.lang.String title
public java.lang.String yaxis
public Series[] series
public java.lang.String group
public java.lang.String numBuilds
public java.lang.String csvFileName
| Constructor Detail |
|---|
public Plot(java.lang.String title,
java.lang.String yaxis,
Series[] series,
java.lang.String group,
java.lang.String numBuilds,
java.lang.String csvFileName)
public Plot()
| Method Detail |
|---|
public int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparablepublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getTitle()
public java.lang.String getYaxis()
public Series[] getSeries()
public java.lang.String getGroup()
public java.lang.String getNumBuilds()
public boolean hasLegend()
public java.lang.String getCsvFileName()
public void setProject(hudson.model.Project project)
project - the project
public void plotGraph(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws java.io.IOException
req - the incoming requestrsp - the response stream
java.io.IOException
public void plotGraphMap(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws java.io.IOException
req - the incoming requestrsp - the response stream
java.io.IOException
public void addBuild(hudson.model.Build build,
java.io.PrintStream logger)
build - logger -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||