Class TextReporter
- java.lang.Object
-
- com.github.benmanes.caffeine.cache.simulator.report.TextReporter
-
- All Implemented Interfaces:
Reporter
- Direct Known Subclasses:
CsvReporter,TableReporter
public abstract class TextReporter extends Object implements Reporter
A skeletal plain text implementation applicable for printing to the console or a file.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedTextReporter(Config config, Set<Policy.Characteristic> characteristics)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract Stringassemble(Set<String> headers, List<PolicyStats> results)Assembles an aggregated report.protected abstract Metricsmetrics()Returns the configuration for how to work with metrics.voidprint(List<PolicyStats> results)Writes the report to the output destination.
-
-
-
Constructor Detail
-
TextReporter
protected TextReporter(Config config, Set<Policy.Characteristic> characteristics)
-
-
Method Detail
-
print
public void print(List<PolicyStats> results)
Description copied from interface:ReporterWrites the report to the output destination.
-
metrics
protected abstract Metrics metrics()
Returns the configuration for how to work with metrics.
-
assemble
protected abstract String assemble(Set<String> headers, List<PolicyStats> results)
Assembles an aggregated report.
-
-