org.jboss.dtf.testframework.utils
Class PerformanceLogger

java.lang.Object
  extended by org.jboss.dtf.testframework.utils.PerformanceLogger

public class PerformanceLogger
extends java.lang.Object


Constructor Summary
PerformanceLogger(java.lang.String dataName)
          Create a performance logger that logs data of type 'dataName'.
 
Method Summary
 void addData(double x, double y)
          Add the data x,y to the performance data.
 java.util.ArrayList getData()
          Retrieve a copy of the performance data.
 java.lang.String getDataName()
           
 java.lang.String getXAxisLabel()
           
 java.lang.String getYAxisLabel()
           
 void output(java.io.OutputStream out)
          Output the logger performance data to the given output stream.
 void setXAxisLabel(java.lang.String label)
          Set the label for the X axis.
 void setYAxisLabel(java.lang.String label)
          Set the label for the Y axis.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PerformanceLogger

public PerformanceLogger(java.lang.String dataName)
Create a performance logger that logs data of type 'dataName'.

Parameters:
dataName - A unique name which will be used to identify the type of data.
Method Detail

getDataName

public java.lang.String getDataName()

setXAxisLabel

public void setXAxisLabel(java.lang.String label)
Set the label for the X axis.

Parameters:
label - The label for the X-axis.

setYAxisLabel

public void setYAxisLabel(java.lang.String label)
Set the label for the Y axis.

Parameters:
label - The label for the Y-axis.

getData

public java.util.ArrayList getData()
Retrieve a copy of the performance data.

Returns:
An array list containing XYData objects.

addData

public void addData(double x,
                    double y)
Add the data x,y to the performance data.

Parameters:
x - The X data.
y - The Y data.

getXAxisLabel

public java.lang.String getXAxisLabel()

getYAxisLabel

public java.lang.String getYAxisLabel()

output

public void output(java.io.OutputStream out)
            throws java.lang.Exception
Output the logger performance data to the given output stream.

Parameters:
out - The stream to log the data to.
Throws:
java.lang.Exception