juju.reattore.perfcap.reporter.impl
Class VelocityReporter

java.lang.Object
  |
  +--juju.reattore.perfcap.reporter.impl.VelocityReporter
All Implemented Interfaces:
Reporter

public class VelocityReporter
extends java.lang.Object
implements Reporter

Generates an arbitrary report using a user defined Velocity template. The available variables are:


Constructor Summary
VelocityReporter()
           
 
Method Summary
 void add(java.util.List ind, Results res)
          Add a new data point to the report.
 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.
 void setTemplate(java.lang.String file)
          The template file name to process.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VelocityReporter

public VelocityReporter()
Method Detail

setFilter

public void setFilter(java.lang.String filter)
The property from the test results. If unset, the leaf is the whole Results object.

Parameters:
filter - The Bean name of the property.

setTemplate

public void setTemplate(java.lang.String file)
The template file name to process.

Parameters:
file - File name.

setOut

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

Parameters:
out - Name of the file.

add

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

Specified by:
add in interface Reporter
Parameters:
ind - A list of independant Variables
res - The results from the test
Throws:
java.lang.Exception - if an error occurs.
See Also:
Reporter

end

public void end()
         throws java.lang.Exception
Description copied from interface: 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 Reporter
Throws:
java.lang.Exception - if an error occurs.
See Also:
Reporter


Copyright © 2002-2003 Michael Hope. All Rights Reserved.