com.sun.slamd.stat
Class IntegerValueTracker

java.lang.Object
  extended bycom.sun.slamd.stat.IntegerValueTracker
All Implemented Interfaces:
StatTracker

public class IntegerValueTracker
extends java.lang.Object
implements StatTracker

This class defines a simple stat tracker that can be used to track events associated with integer values.


Field Summary
static java.lang.String COMPARE_IN_PARALLEL_STRING
          The text that will be used to indicate that the comparison between multiple jobs will be performed in parallel.
static java.lang.String COMPARE_OVER_TIME_STRING
          The text that will be used to indicate that the comparison between multiple jobs will be performed over time.
 
Constructor Summary
IntegerValueTracker()
          Creates a new integer value tracker intended for use as a placeholder for decoding purposes.
IntegerValueTracker(java.lang.String clientID, java.lang.String threadID, java.lang.String displayName, int collectionInterval)
          Creates a new integer value tracker with the specified information.
 
Method Summary
 void addValue(int intValue)
          Adds the specified value to the set of information collected so far for this stat tracker.
 void aggregate(StatTracker[] trackers)
          Aggregates the information collected by the provided set of stat trackers into a single tracker that represents the information gathered from the entire set of data.
 java.awt.image.BufferedImage createGraph(int width, int height)
          Creates a graph that visually depicts the information in this stat tracker using all the default settings.
 java.awt.image.BufferedImage createGraph(Job[] jobs, int width, int height, ParameterList parameters)
          Creates a graph that visually depicts the information in the provided set of stat trackers.
 java.awt.image.BufferedImage createGraph(Job job, int width, int height, ParameterList parameters)
          Creates a graph that visually depicts the information in the provided set of stat trackers.
 java.awt.image.BufferedImage createMonitorGraph(Job job, int width, int height, ParameterList parameters)
          Creates a graph that visually depicts the information collected by resource monitors associated with the provided job.
 void decode(byte[] encodedData)
          Decodes the provided data and uses it as the data for this stat tracker.
 void enableRealTimeStats(RealTimeStatReporter statReporter, java.lang.String jobID)
          Indicates that the stat tracker should enable real-time statistics collection.
 byte[] encode()
          Encodes the data collected by this tracker into a byte array that may be transferred over the network or written out to persistent storage.
 double getAverageCountPerInterval()
          Retrieves the average number of times the tracked event occurred in a single interval.
 double getAverageCountPerSecond()
          Retrieves the average number of times that this tracker was updated in a single second.
 double getAverageValue()
          Retrieves the sum of all the values added to this stat tracker divided by the number of values added to this stat tracker.
 double getAverageValuePerInterval()
          Retrieves the average total of all the values added in a single interval.
 double getAverageValuePerSecond()
          Retrieves the sum of all the values provided to this tracker divided by the total number of seconds that it was collecting data.
 java.lang.String getAxisLabel()
          Retrieves the label that should be included along the vertical axis in a line graph for this stat tracker.
 java.lang.String getClientID()
          Retrieves the client ID of the client that used this stat tracker.
 int getCollectionInterval()
          Retrieves the collection interval (in seconds) that will be used for this stat tracker.
 double getCorrelationCoefficient()
          Retrieves the correlation coefficient for the data, which is a measure of how strongly a change in one variable impacts a change in another.
 java.lang.String[][] getDataForExport(boolean includeLabels)
          Retrieves the raw data associated with this stat tracker in a form that can be easily converted for export to CSV, tab-delimited text, or some other format for use in an external application.
 java.lang.String getDetailHTML()
          Retrieves a version of the verbose information for this stat tracker, formatted for display in an HTML document.
 java.lang.String getDetailString()
          Retrieves a detailed (potentially multi-line) string with verbose information about the data collected by this stat tracker.
 java.lang.String getDisplayName()
          Retrieves the user-friendly name associated with this stat tracker.
 int getDuration()
          Retrieves the total length of time in seconds that this stat tracker was capturing statistics.
 double[] getGraphData()
          Retrieves the data that represents the points in a line graph for this stat tracker.
 ParameterList getGraphParameterStubs(Job job)
          Retrieves the set of parameters that may be specified to customize the graph that is generated based on the statistical information in the stat trackers.
 ParameterList getGraphParameterStubs(Job[] jobs)
          Retrieves the set of parameters that may be specified to customize the graph that is generated based on the statistical information in the stat trackers.
 double getHorizontalityTScore()
          Retrieves a T score value that can be used to determine how confident we are that the result set is approximately linear.
 int[] getIntervalCounts()
          Retrieves an array indicating the number of times the tracked event occurred over each interval.
 int[] getIntervalTotals()
          Retrieves an array containing the sums of all the values added to this tracker over each interval.
 int getMaxValue()
          Retrieves the maximum value supplied to this tracker over the entire duration.
 int getMinValue()
          Retrieves the minimum value supplied to this tracker over the entire duration.
 ParameterList getMonitorGraphParameterStubs(Job job)
          Retrieves the set of parameters that may be specified to customize the graph that is generated based on the resource monitor information in the stat trackers.
 int getNumIntervals()
          Retrieves the number of intervals for which data is available for this stat tracker.
 double[] getRegressionCoefficients()
          Retrieves the linear regression coefficients for this tracker, based on the average value per occurrence.
 double getStandardDeviation()
          Retrieves the standard deviation for this tracker, based on the average value per occurrence.
 java.lang.String[] getSummaryData()
          Retrieves the summary string data for this stat tracker as separate values.
 java.lang.String getSummaryHTML()
          Retrieves a version of the summary information for this stat tracker formatted for display in an HTML document.
 java.lang.String[] getSummaryLabels()
          Retrieves a string array with the labels corresponding to the values returned from the getSummaryData method.
 java.lang.String getSummaryString()
          Retrieves brief one-line summary string with cumulative information about this stat tracker.
 double getSummaryValue()
          Retrieves the value associated with this stat tracker.
 java.lang.String getThreadID()
          Retrieves the thread ID of the client thread that used this stat tracker.
 int getTotalCount()
          Retrieves the total number of times that the tracked event occurred over the total duration.
 long getTotalCountAsLong()
          Retrieves the total number of times that the tracked event occurred over the total duration.
 int getTotalValue()
          Retrieves the sum of all the individual values added to this stat tracker over the total duration.
 long getTotalValueAsLong()
          Retrieves the sum of all the individual values added to this stat tracker over the total duration.
 boolean isAtLeast(double value)
          Indicates whether the value associated with this stat tracker is greater than or equal to the provided value.
 boolean isAtMost(double value)
          Indicates whether the value associated with this stat tracker is less than or equal to the provided value.
 boolean isSearchable()
          Indicates whether the user may search for jobs with statistics collected by this stat tracker.
 StatTracker newInstance()
          Creates a new instance of this stat tracker.
 void setClientID(java.lang.String clientID)
          Specifies the client ID of the client that used this stat tracker.
 void setCollectionInterval(int collectionInterval)
          Specifies the collection interval in seconds to use fort this stat tracker.
 void setDisplayName(java.lang.String displayName)
          Specifies the display name for this stat tracker.
 void setDuration(int duration)
          Specifies the duration for this stat tracker.
 void setIntervalData(int[] intervalTotals, int[] intervalCounts)
          Specifies the data associated with this tracker in terms of the total value per interval and the number of occurrences per interval.
 void setThreadID(java.lang.String threadID)
          Specifies the thread ID of the client thread that used this stat tracker.
 void startTracker()
          Indicates that the stat tracker is to start maintaining statistics and that it should start its internal timer.
 void stopTracker()
          Indicates that the stat tracker that there will not be any more statistics collection done and that it should stop its internal timer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMPARE_IN_PARALLEL_STRING

public static final java.lang.String COMPARE_IN_PARALLEL_STRING
The text that will be used to indicate that the comparison between multiple jobs will be performed in parallel.

See Also:
Constant Field Values

COMPARE_OVER_TIME_STRING

public static final java.lang.String COMPARE_OVER_TIME_STRING
The text that will be used to indicate that the comparison between multiple jobs will be performed over time.

See Also:
Constant Field Values
Constructor Detail

IntegerValueTracker

public IntegerValueTracker()
Creates a new integer value tracker intended for use as a placeholder for decoding purposes. This version of the constructor should not be used by job classes.


IntegerValueTracker

public IntegerValueTracker(java.lang.String clientID,
                           java.lang.String threadID,
                           java.lang.String displayName,
                           int collectionInterval)
Creates a new integer value tracker with the specified information.

Parameters:
clientID - The client ID of the client that used this stat tracker.
threadID - The thread ID of the client thread that used this stat tracker.
displayName - The display name to use for this stat tracker.
collectionInterval - The collection interval in seconds that should be used for this stat tracker.
Method Detail

newInstance

public StatTracker newInstance()
Creates a new instance of this stat tracker. The new instance should have the same type, display name, client ID, thread ID, and collection interval as the stat tracker used to create it.

Specified by:
newInstance in interface StatTracker
Returns:
The new instance of this stat tracker.

addValue

public void addValue(int intValue)
Adds the specified value to the set of information collected so far for this stat tracker.

Parameters:
intValue - The value to add to the set of information collected so far for this stat tracker.

startTracker

public void startTracker()
Indicates that the stat tracker is to start maintaining statistics and that it should start its internal timer.

Specified by:
startTracker in interface StatTracker

stopTracker

public void stopTracker()
Indicates that the stat tracker that there will not be any more statistics collection done and that it should stop its internal timer.

Specified by:
stopTracker in interface StatTracker

enableRealTimeStats

public void enableRealTimeStats(RealTimeStatReporter statReporter,
                                java.lang.String jobID)
Indicates that the stat tracker should enable real-time statistics collection. Note that some stat trackers may not support real-time statistics collection, in which case this method may be ignored.

Specified by:
enableRealTimeStats in interface StatTracker
Parameters:
statReporter - The stat-reporter that should be used to report real-time statistics to the SLAMD server.
jobID - The job ID of the job that will be reporting the data.

getTotalCount

public int getTotalCount()
Retrieves the total number of times that the tracked event occurred over the total duration.

Returns:
The total number of times that the tracked event occurred over the total duration.

getTotalCountAsLong

public long getTotalCountAsLong()
Retrieves the total number of times that the tracked event occurred over the total duration. This method will return the count as a long, which is less likely to overflow than an integer.

Returns:
The total number of times that the tracked event occurred over the total duration.

getTotalValue

public int getTotalValue()
Retrieves the sum of all the individual values added to this stat tracker over the total duration.

Returns:
The sum of all the individual values added to this stat tracker over the total duration.

getTotalValueAsLong

public long getTotalValueAsLong()
Retrieves the sum of all the individual values added to this stat tracker over the total duration. The total value will be returned as a long, which is less likely to overflow than an integer.

Returns:
The sum of all the individual values added to this stat tracker over the total duration.

getAverageValue

public double getAverageValue()
Retrieves the sum of all the values added to this stat tracker divided by the number of values added to this stat tracker.

Returns:
The average of all the values added to this stat tracker.

getIntervalCounts

public int[] getIntervalCounts()
Retrieves an array indicating the number of times the tracked event occurred over each interval.

Returns:
An array indicating the number of times the tracked event occurred over each interval.

getIntervalTotals

public int[] getIntervalTotals()
Retrieves an array containing the sums of all the values added to this tracker over each interval.

Returns:
An array containing the sums of all the values added to this tracker over each interval.

setIntervalData

public void setIntervalData(int[] intervalTotals,
                            int[] intervalCounts)
Specifies the data associated with this tracker in terms of the total value per interval and the number of occurrences per interval. Note that the number of elements in each array must be identical.

Parameters:
intervalTotals - An array containing the sums of all the values added to this tracker over each interval.
intervalCounts - An array indicating the number of times the tracked event occurred over each interval.

getMaxValue

public int getMaxValue()
Retrieves the maximum value supplied to this tracker over the entire duration.

Returns:
The maximum value supplied to this tracker over the entire duration.

getMinValue

public int getMinValue()
Retrieves the minimum value supplied to this tracker over the entire duration.

Returns:
The minimum value supplied to this tracker over the entire duration.

getAverageCountPerInterval

public double getAverageCountPerInterval()
Retrieves the average number of times the tracked event occurred in a single interval.

Returns:
The average number of times the tracked event occurred in a single interval.

getAverageValuePerInterval

public double getAverageValuePerInterval()
Retrieves the average total of all the values added in a single interval.

Returns:
The average total of all values added in a single interval.

getAverageCountPerSecond

public double getAverageCountPerSecond()
Retrieves the average number of times that this tracker was updated in a single second.

Returns:
The average number of times that this tracker was updated in a single second.

getAverageValuePerSecond

public double getAverageValuePerSecond()
Retrieves the sum of all the values provided to this tracker divided by the total number of seconds that it was collecting data.

Returns:
The sum of all the values provided to this tracker divided by the total number of seconds that it was collecting data.

getStandardDeviation

public double getStandardDeviation()
Retrieves the standard deviation for this tracker, based on the average value per occurrence.

Returns:
The standard deviation for this tracker, based on average value per occurrence.

getCorrelationCoefficient

public double getCorrelationCoefficient()
Retrieves the correlation coefficient for the data, which is a measure of how strongly a change in one variable impacts a change in another. If the regression line is perfectly horizontal (i.e., a change in one variable has no impact whatsoever on the value of the other), then the correlation coefficient will be zero. If the data is perfectly linear but not horizontal (i.e., a change in one variable has a linear, proportional change in the other), then it will be 1.0 or -1.0. If the data is not linear, then the value will be somewhere between -1.0 and 0.0, or between 0.0 and 1.0.

Returns:
The regression coefficient for the data.

getRegressionCoefficients

public double[] getRegressionCoefficients()
Retrieves the linear regression coefficients for this tracker, based on the average value per occurrence. The array returned will have two values, A and B, which can be used in the equation y = A + Bx to generate the line that most closely approximates the set of results.

Returns:
The linear regression coefficients for this tracker, based on the average value per occurrence.

getHorizontalityTScore

public double getHorizontalityTScore()
Retrieves a T score value that can be used to determine how confident we are that the result set is approximately linear. It does this by dividing the data set into two halves and performing a confidence test to determine whether those two means can be considered equal.

Returns:
The calculated T score value.

getClientID

public java.lang.String getClientID()
Retrieves the client ID of the client that used this stat tracker.

Specified by:
getClientID in interface StatTracker
Returns:
The client ID of the client that used this stat tracker.

setClientID

public void setClientID(java.lang.String clientID)
Specifies the client ID of the client that used this stat tracker. Note that this should only be used when creating a new stat tracker based on encoded data and not when using it to collect statistics.

Specified by:
setClientID in interface StatTracker
Parameters:
clientID - The client ID of the client that used this stat tracker.

getThreadID

public java.lang.String getThreadID()
Retrieves the thread ID of the client thread that used this stat tracker.

Specified by:
getThreadID in interface StatTracker
Returns:
The thread ID of the client thread that used this stat tracker.

setThreadID

public void setThreadID(java.lang.String threadID)
Specifies the thread ID of the client thread that used this stat tracker. Note that this should only be used when creating a new stat tracker based on encoded data and not when using it to collect statistics.

Specified by:
setThreadID in interface StatTracker
Parameters:
threadID - The thread ID of the client thread that used this stat tracker.

getDisplayName

public java.lang.String getDisplayName()
Retrieves the user-friendly name associated with this stat tracker.

Specified by:
getDisplayName in interface StatTracker
Returns:
The user-friendly name associated with this stat tracker.

setDisplayName

public void setDisplayName(java.lang.String displayName)
Specifies the display name for this stat tracker. Note that this should only be used when creating a new stat tracker based on encoded data and not when using it to collect statistics.

Specified by:
setDisplayName in interface StatTracker
Parameters:
displayName - The display name for this stat tracker.

getCollectionInterval

public int getCollectionInterval()
Retrieves the collection interval (in seconds) that will be used for this stat tracker.

Specified by:
getCollectionInterval in interface StatTracker
Returns:
The collection interval (in seconds) that will be used for this stat tracker.

setCollectionInterval

public void setCollectionInterval(int collectionInterval)
Specifies the collection interval in seconds to use fort this stat tracker. This should not be used while the stat tracker is actively collecting statistics.

Specified by:
setCollectionInterval in interface StatTracker
Parameters:
collectionInterval - The collection interval in seconds to use for this stat tracker.

getDuration

public int getDuration()
Retrieves the total length of time in seconds that this stat tracker was capturing statistics.

Specified by:
getDuration in interface StatTracker
Returns:
The total length of time in seconds that this stat tracker was

setDuration

public void setDuration(int duration)
Specifies the duration for this stat tracker. Note that this should only be used when creating a new stat tracker based on encoded data and not when using it to collect statistics.

Specified by:
setDuration in interface StatTracker
Parameters:
duration - The duration for this stat tracker.

isSearchable

public boolean isSearchable()
Indicates whether the user may search for jobs with statistics collected by this stat tracker. The search will be "greater than" and "less than" some user-specified value.

Specified by:
isSearchable in interface StatTracker
Returns:
true if statistics collected by this stat tracker should be searchable, or false if not.

isAtLeast

public boolean isAtLeast(double value)
Indicates whether the value associated with this stat tracker is greater than or equal to the provided value. This is only applicable if isSearchable returns true, and what exactly "the value of this stat tracker" means will be left up to those stat trackers that are searchable.

Specified by:
isAtLeast in interface StatTracker
Parameters:
value - The value against which the value of this stat tracker is to be compared.
Returns:
true if the value of this stat tracker is greater than or equal to the provided value, or false if not.

isAtMost

public boolean isAtMost(double value)
Indicates whether the value associated with this stat tracker is less than or equal to the provided value. This is only applicable if isSearchable returns true, and what exactly "the value of this stat tracker" means will be left up to those stat trackers that are searchable.

Specified by:
isAtMost in interface StatTracker
Parameters:
value - The value against which the value of this stat tracker is to be compared.
Returns:
true if the value of this stat tracker is less than or equal to the provided value, or false if not.

getSummaryValue

public double getSummaryValue()
Retrieves the value associated with this stat tracker. This is only applicable if isSearchable returns true, and what exactly "the value associated with this stat tracker" means will be left up to those stat trackers that are searchable.

Specified by:
getSummaryValue in interface StatTracker
Returns:
The value associated with this stat tracker.

getNumIntervals

public int getNumIntervals()
Retrieves the number of intervals for which data is available for this stat tracker.

Specified by:
getNumIntervals in interface StatTracker
Returns:
The number of intervals for which data is available for this stat tracker.

aggregate

public void aggregate(StatTracker[] trackers)
Aggregates the information collected by the provided set of stat trackers into a single tracker that represents the information gathered from the entire set of data. All of the stat trackers in the provided array must be of the same type and have the same collection interval as the instance into which the information will be aggregated.

Specified by:
aggregate in interface StatTracker
Parameters:
trackers - The set of stat trackers whose data is to be aggregated.

getSummaryString

public java.lang.String getSummaryString()
Retrieves brief one-line summary string with cumulative information about this stat tracker.

Specified by:
getSummaryString in interface StatTracker
Returns:
A brief one-line summary string containing cumulative information about this stat tracker.

getDetailString

public java.lang.String getDetailString()
Retrieves a detailed (potentially multi-line) string with verbose information about the data collected by this stat tracker.

Specified by:
getDetailString in interface StatTracker
Returns:
A detailed string with verbose information about the data collected by this stat tracker.

getSummaryHTML

public java.lang.String getSummaryHTML()
Retrieves a version of the summary information for this stat tracker formatted for display in an HTML document.

Specified by:
getSummaryHTML in interface StatTracker
Returns:
An HTML version of the summary data for this stat tracker.

getDetailHTML

public java.lang.String getDetailHTML()
Retrieves a version of the verbose information for this stat tracker, formatted for display in an HTML document.

Specified by:
getDetailHTML in interface StatTracker
Returns:
An HTML version of the verbose data for this stat tracker.

getSummaryLabels

public java.lang.String[] getSummaryLabels()
Retrieves a string array with the labels corresponding to the values returned from the getSummaryData method.

Specified by:
getSummaryLabels in interface StatTracker
Returns:
A string array with the labels corresponding to the values returned from the getSummaryData method.

getSummaryData

public java.lang.String[] getSummaryData()
Retrieves the summary string data for this stat tracker as separate values.

Specified by:
getSummaryData in interface StatTracker
Returns:
The summary string data for this stat tracker as separate values.

getDataForExport

public java.lang.String[][] getDataForExport(boolean includeLabels)
Retrieves the raw data associated with this stat tracker in a form that can be easily converted for export to CSV, tab-delimited text, or some other format for use in an external application. There should be one value per "cell".

Specified by:
getDataForExport in interface StatTracker
Parameters:
includeLabels - Indicates whether the information being exported should contain labels.
Returns:
The raw data associated with this stat tracker in a form that can be exported to some external form.

encode

public byte[] encode()
Encodes the data collected by this tracker into a byte array that may be transferred over the network or written out to persistent storage.

Specified by:
encode in interface StatTracker
Returns:
The data collected by this tracker encoded as a byte array.

decode

public void decode(byte[] encodedData)
            throws SLAMDException
Decodes the provided data and uses it as the data for this stat tracker.

Specified by:
decode in interface StatTracker
Parameters:
encodedData - The encoded version of the data to use for this stat tracker.
Throws:
SLAMDException - If the provided data cannot be decoded and used with this stat tracker.

getGraphParameterStubs

public ParameterList getGraphParameterStubs(Job job)
Retrieves the set of parameters that may be specified to customize the graph that is generated based on the statistical information in the stat trackers.

Specified by:
getGraphParameterStubs in interface StatTracker
Parameters:
job - The job containing the statistical information to be graphed.
Returns:
The set of parameters that may be used to customize the graph that is generated.

getMonitorGraphParameterStubs

public ParameterList getMonitorGraphParameterStubs(Job job)
Retrieves the set of parameters that may be specified to customize the graph that is generated based on the resource monitor information in the stat trackers.

Specified by:
getMonitorGraphParameterStubs in interface StatTracker
Parameters:
job - The job containing the resource monitor information to be graphed.
Returns:
The set of parameters that may be used to customize the graph that is generated.

getGraphParameterStubs

public ParameterList getGraphParameterStubs(Job[] jobs)
Retrieves the set of parameters that may be specified to customize the graph that is generated based on the statistical information in the stat trackers.

Specified by:
getGraphParameterStubs in interface StatTracker
Parameters:
jobs - The job containing the statistical information to be compared and graphed.
Returns:
The set of parameters that may be used to customize the graph that is generated.

getGraphData

public double[] getGraphData()
Retrieves the data that represents the points in a line graph for this stat tracker. This is only applicable if isSearchable returns true.

Specified by:
getGraphData in interface StatTracker
Returns:
The data that represents the points in a line graph for this stat tracker, or null if that data is not available.

getAxisLabel

public java.lang.String getAxisLabel()
Retrieves the label that should be included along the vertical axis in a line graph for this stat tracker. This is only applicable if isSearchable returns true.

Specified by:
getAxisLabel in interface StatTracker
Returns:
The lable that should be included along the vertical axis in a line graph for this stat tracker, or null if that data is not applicable.

createGraph

public java.awt.image.BufferedImage createGraph(Job job,
                                                int width,
                                                int height,
                                                ParameterList parameters)
Creates a graph that visually depicts the information in the provided set of stat trackers. The provided stat trackers must be of the same type as this stat tracker.

Specified by:
createGraph in interface StatTracker
Parameters:
job - The job containing the statistical information to be graphed.
width - The width in pixels of the graph to create.
height - The height in pixels of the graph to create.
parameters - The set of parameters that may be used to customize the graph that is generated.
Returns:
The graph created from the statistical information in the provided job.

createMonitorGraph

public java.awt.image.BufferedImage createMonitorGraph(Job job,
                                                       int width,
                                                       int height,
                                                       ParameterList parameters)
Creates a graph that visually depicts the information collected by resource monitors associated with the provided job.

Specified by:
createMonitorGraph in interface StatTracker
Parameters:
job - The job containing the statistical information to be graphed.
width - The width in pixels of the graph to create.
height - The height in pixels of the graph to create.
parameters - The set of parameters that may be used to customize the graph that is generated.
Returns:
The graph created from the statistical information in the provided job.

createGraph

public java.awt.image.BufferedImage createGraph(Job[] jobs,
                                                int width,
                                                int height,
                                                ParameterList parameters)
Creates a graph that visually depicts the information in the provided set of stat trackers. The provided stat trackers must be the of the same type as this stat tracker.

Specified by:
createGraph in interface StatTracker
Parameters:
jobs - The job containing the statistical information to be compared and graphed.
width - The width in pixels of the graph to create.
height - The height in pixels of the graph to create.
parameters - The set of parameters that may be used to customize the graph that is generated.
Returns:
The graph created from the statistical information in the provided job.

createGraph

public java.awt.image.BufferedImage createGraph(int width,
                                                int height)
Creates a graph that visually depicts the information in this stat tracker using all the default settings.

Specified by:
createGraph in interface StatTracker
Parameters:
width - The width in pixels of the graph to create.
height - The height in pixels of the graph to create.
Returns:
The graph created from this stat tracker.