org.databene.contiperf.report
Class AbstractReportModule

java.lang.Object
  extended by org.databene.contiperf.report.AbstractReportModule
All Implemented Interfaces:
ReportModule
Direct Known Subclasses:
ConsoleReportModule, CSVInvocationReportModule, CSVLatencyReportModule, CSVSummaryReportModule, EmptyReportModule, HtmlReportModule, InvocationCountingReportModule, ListReportModule, LoggerModuleAdapter

public abstract class AbstractReportModule
extends Object
implements ReportModule

Abstract parent class for ReportModules, which provides ReportContext handling and empty implementations of the other ReportModule methods.

Created: 16.01.2011 08:07:21

Since:
2.0.0
Author:
Volker Bergmann

Field Summary
protected  ReportContext context
           
 
Constructor Summary
AbstractReportModule()
           
 
Method Summary
 void completed(String serviceId, LatencyCounter[] counters, ExecutionConfig executionConfig, PerformanceRequirement requirement)
          implements backwards-compatibility of inheritors of older versions of this class
 void completed(String serviceId, LatencyCounter[] counters, PerformanceRequirement requirement)
          Implements a method which has been removed from the interface but implemented by children of this class, probably using the Override annotation, which would cause compiler errors if the method were removed.
 String getReportReference(String serviceId)
           
 String getReportReferenceLabel(String serviceId)
           
 void invoked(String serviceId, int latency, long startTime)
           
 void setContext(ReportContext context)
           
 void starting(String serviceId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

context

protected ReportContext context
Constructor Detail

AbstractReportModule

public AbstractReportModule()
Method Detail

setContext

public void setContext(ReportContext context)
Specified by:
setContext in interface ReportModule

getReportReferenceLabel

public String getReportReferenceLabel(String serviceId)
Specified by:
getReportReferenceLabel in interface ReportModule

getReportReference

public String getReportReference(String serviceId)
Specified by:
getReportReference in interface ReportModule

starting

public void starting(String serviceId)
Specified by:
starting in interface ReportModule

invoked

public void invoked(String serviceId,
                    int latency,
                    long startTime)
Specified by:
invoked in interface ReportModule

completed

public void completed(String serviceId,
                      LatencyCounter[] counters,
                      ExecutionConfig executionConfig,
                      PerformanceRequirement requirement)
implements backwards-compatibility of inheritors of older versions of this class

Specified by:
completed in interface ReportModule

completed

public void completed(String serviceId,
                      LatencyCounter[] counters,
                      PerformanceRequirement requirement)
Implements a method which has been removed from the interface but implemented by children of this class, probably using the Override annotation, which would cause compiler errors if the method were removed.



Copyright © 2013. All Rights Reserved.