Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

juju.reattore.perfcap.reporter.impl
Class CSVReporter  view CSVReporter download CSVReporter.java

java.lang.Object
  extended byjuju.reattore.perfcap.reporter.impl.CSVReporter
All Implemented Interfaces:
juju.reattore.perfcap.reporter.Reporter

public class CSVReporter
extends java.lang.Object
implements juju.reattore.perfcap.reporter.Reporter

Writes a report to a CSV file. The first line is a header containing the names of all of the independant variables, followed by the name of the result point. The following lines are the samples in order.


Field Summary
private  java.lang.String filter
           
private  java.lang.String out
           
private  java.io.PrintStream to
           
 
Constructor Summary
CSVReporter()
           
 
Method Summary
 void add(java.util.List ind, juju.reattore.perfcap.tester.Results res)
          Add a new data point to the report.
private  java.lang.String encode(java.lang.Object obj)
           
 void end()
          Notifys this reporter that all of the data points have been processed.
 void setFilter(java.lang.String filter)
          The property from the test results.
 void setOut(java.lang.String out)
          Name of the file to write to.
private  void setup()
           
private  void writeHeader(java.util.List ind, juju.reattore.perfcap.tester.Results res)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

filter

private java.lang.String filter

out

private java.lang.String out

to

private java.io.PrintStream to
Constructor Detail

CSVReporter

public CSVReporter()
Method Detail

setFilter

public void setFilter(java.lang.String filter)
The property from the test results. If unset, serialises the whole result object as a Base64 string.


setOut

public void setOut(java.lang.String out)
Name of the file to write to. If unset, writes to stdout.


setup

private void setup()
            throws java.io.IOException

writeHeader

private void writeHeader(java.util.List ind,
                         juju.reattore.perfcap.tester.Results res)
                  throws java.io.IOException

encode

private java.lang.String encode(java.lang.Object obj)
                         throws java.io.IOException

add

public void add(java.util.List ind,
                juju.reattore.perfcap.tester.Results res)
         throws java.lang.Exception
Description copied from interface: juju.reattore.perfcap.reporter.Reporter
Add a new data point to the report.

Specified by:
add in interface juju.reattore.perfcap.reporter.Reporter

end

public void end()
         throws java.lang.Exception
Description copied from interface: juju.reattore.perfcap.reporter.Reporter
Notifys this reporter that all of the data points have been processed. Can be used to commit the report.

Specified by:
end in interface juju.reattore.perfcap.reporter.Reporter