Groovy Documentation

lsst.gruth.grutils
[Groovy] Class ResultHandlers

java.lang.Object
  lsst.gruth.grutils.ResultHandlers

class ResultHandlers

The handling of reports. A list of reports will be handled by ResultReporter objects. This can be explicitly fired by the gru script code or implicitly at the end of execution of the script (through a shutdownhook)

Authors:
bamade


Property Summary
static java.util.List listReporters

the list of code that are able to deliver results (ResultReporters).

static java.util.ArrayList listReports

List of TztReport instance that will be handled by the ResultReporters

static int reportBufferSize

no longer used ...

static java.lang.String reportBundleName

 
Constructor Summary
ResultHandlers()

 
Method Summary
static java.lang.Object deliver(java.lang.String bundleName)

explicitly ask each ResultReporter to get reports and bundle them under a common name.

static java.lang.Object handleReport(java.lang.String bundleName, TztReport report)

static java.lang.Object handleReports(java.lang.String bundleName, java.util.List list)

Explicitly called to report a list of TztReport under a common bundelName

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Property Detail

listReporters

static java.util.List listReporters
the list of code that are able to deliver results (ResultReporters). Those codes can be specified:


listReports

static java.util.ArrayList listReports
List of TztReport instance that will be handled by the ResultReporters


reportBufferSize

static int reportBufferSize
no longer used ...


reportBundleName

static java.lang.String reportBundleName


 
Constructor Detail

ResultHandlers

ResultHandlers()


 
Method Detail

deliver

static java.lang.Object deliver(java.lang.String bundleName)
explicitly ask each ResultReporter to get reports and bundle them under a common name. In fact it is instances of AnnotatedReport that are created and fed to the ResultReporter>/TT>
Parameters:
bundleName


handleReport

static java.lang.Object handleReport(java.lang.String bundleName, TztReport report)


handleReports

static java.lang.Object handleReports(java.lang.String bundleName, java.util.List list)
Explicitly called to report a list of TztReport under a common bundelName
Parameters:
bundleName
list


 

Groovy Documentation