public class LoggerModuleAdapter extends AbstractReportModule
ExecutionLogger
interface available in ContiPerf 2.ExecutionLoggers should be replaced with their ReportModule
counterpart. For example, if the old version was
@Rule public ContiPerfRule = new ContiPerfRule(new ConsoleExecutionLogger());
the new version would be
@Rule public ContiPerfRule = new ContiPerfRule(new ConsoleReportModule());
LoggerModuleAdapter. If the old version was
@Rule public ContiPerfRule = new ContiPerfRule(new MyCustomLogger());
the new version would be
@Rule public ContiPerfRule = new ContiPerfRule(new LoggerModuleAdapter(new MyCustomLogger()));
| Modifier and Type | Field and Description |
|---|---|
protected ExecutionLogger |
logger |
context| Constructor and Description |
|---|
LoggerModuleAdapter(ExecutionLogger logger) |
| Modifier and Type | Method and Description |
|---|---|
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) |
completed, error, getReportReference, getReportReferenceLabel, setContext, startingprotected ExecutionLogger logger
public LoggerModuleAdapter(ExecutionLogger logger)
public void invoked(String serviceId, int latency, long startTime)
invoked in interface ReportModuleinvoked in class AbstractReportModulepublic void completed(String serviceId, LatencyCounter[] counters, ExecutionConfig executionConfig, PerformanceRequirement requirement)
AbstractReportModulecompleted in interface ReportModulecompleted in class AbstractReportModulepublic ExecutionLogger getLogger()
Copyright © 2019. All rights reserved.