java.lang.Object
juju.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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
filter
private java.lang.String filter
out
private java.lang.String out
to
private java.io.PrintStream to
CSVReporter
public CSVReporter()
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