|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.netarkivet.harvester.harvesting.monitor.StartedJobHistoryChartGen
class StartedJobHistoryChartGen
This class implements a generator for an history chart of a running job. The chart traces the progress percentage and the queued URI count over the crawl time. Charts are rendered in a PNG image file, generated in the webapp directory.
Field Summary | |
---|---|
(package private) static org.apache.commons.logging.Log |
LOG
The class logger. |
Constructor Summary | |
---|---|
StartedJobHistoryChartGen(long jobId)
|
Method Summary | |
---|---|
void |
cleanup()
Deletes the chart image if it exists and stops the generation schedule. |
(package private) void |
generatePngChart(java.io.File outputFile,
int pxWidth,
int pxHeight,
java.lang.String chartTitle,
java.lang.String xAxisTitle,
java.lang.String[] yDataSeriesTitles,
double[] timeValuesInSeconds,
double[][] yDataSeriesRange,
double[][] yDataSeries,
java.awt.Color[] yDataSeriesColors,
java.lang.String[] yDataSeriesTickSuffix,
boolean drawBorder,
java.awt.Color backgroundColor)
Generates a chart in PNG format. |
java.io.File |
getChartFile()
Returns the image file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final org.apache.commons.logging.Log LOG
Constructor Detail |
---|
StartedJobHistoryChartGen(long jobId)
Method Detail |
---|
public java.io.File getChartFile()
public void cleanup()
final void generatePngChart(java.io.File outputFile, int pxWidth, int pxHeight, java.lang.String chartTitle, java.lang.String xAxisTitle, java.lang.String[] yDataSeriesTitles, double[] timeValuesInSeconds, double[][] yDataSeriesRange, double[][] yDataSeries, java.awt.Color[] yDataSeriesColors, java.lang.String[] yDataSeriesTickSuffix, boolean drawBorder, java.awt.Color backgroundColor)
outputFile
- the output file, it should exist.pxWidth
- the image width in pixels.pxHeight
- the image height in pixels.chartTitle
- the chart title, may be null.xAxisTitle
- the x axis titleyDataSeriesRange
- the axis range (null for auto)yDataSeriesTitles
- the Y axis titles.timeValuesInSeconds
- the time values in secondsyDataSeries
- the Y axis value series.yDataSeriesColors
- the Y axis value series drawing colors.drawBorder
- draw, or not, the border.backgroundColor
- the chart background color.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |