org.databene.contiperf.report
Class LoggerModuleAdapter

java.lang.Object
  extended by org.databene.contiperf.report.AbstractReportModule
      extended by org.databene.contiperf.report.LoggerModuleAdapter
All Implemented Interfaces:
ReportModule

public class LoggerModuleAdapter
extends AbstractReportModule

Adapter class which makes implementors of the old ExecutionLogger interface available in ContiPerf 2.

If you are migrating to ContiPerf, usages of the predefined ContiPerf ExecutionLoggers should be replaced with their ReportModule counterpart. For example, if the old version was

Since:
2.0.0
Author:
Volker Bergmann

Field Summary
protected  ExecutionLogger logger
           
 
Fields inherited from class org.databene.contiperf.report.AbstractReportModule
context
 
Constructor Summary
LoggerModuleAdapter(ExecutionLogger logger)
           
 
Method Summary
 void completed(String serviceId, LatencyCounter[] counters, ExecutionConfig executionConfig, PerformanceRequirement requirement)
          implements backwards-compatibility of inheritors of older versions of this class
 ExecutionLogger getLogger()
           
 void invoked(String serviceId, int latency, long startTime)
           
 
Methods inherited from class org.databene.contiperf.report.AbstractReportModule
completed, getReportReference, getReportReferenceLabel, setContext, starting
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected ExecutionLogger logger
Constructor Detail

LoggerModuleAdapter

public LoggerModuleAdapter(ExecutionLogger logger)
Method Detail

invoked

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

completed

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

Specified by:
completed in interface ReportModule
Overrides:
completed in class AbstractReportModule

getLogger

public ExecutionLogger getLogger()


Copyright © 2013. All Rights Reserved.