Package io.perl.logger.impl
Class DefaultLogger
java.lang.Object
io.perl.logger.impl.ResultsLogger
io.perl.logger.impl.DefaultLogger
- All Implemented Interfaces:
ReportLatency
,PerformanceLogger
,Print
- Direct Known Subclasses:
DefaultPrometheusLogger
Class DefaultLogger.
-
Constructor Summary
ConstructorDescriptionConstructor DefaultLogger takes no arguments but initialize all values with default values.DefaultLogger
(String header, double[] percentiles, TimeUnit latencyTimeUnit, long minLatency, long maxLatency) Constructor DefaultLogger pass all values to its super class. -
Method Summary
Modifier and TypeMethodDescriptionvoid
recordLatency
(long startTime, int events, int bytes, long latency) Record the latency.Methods inherited from class io.perl.logger.impl.ResultsLogger
appendResultString, getMaxLatency, getMinLatency, getPercentileNames, getPercentiles, getPrefix, getTimeUnit, print, printTotal, setMaxLatency, setMinLatency, setPercentiles, setPrefix, setTimeUnit
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.perl.logger.PerformanceLogger
getPrintingIntervalSeconds
-
Constructor Details
-
DefaultLogger
public DefaultLogger(String header, double[] percentiles, TimeUnit latencyTimeUnit, long minLatency, long maxLatency) Constructor DefaultLogger pass all values to its super class.- Parameters:
header
- Stringpercentiles
- double[]latencyTimeUnit
- TimeUnitminLatency
- longmaxLatency
- long
-
DefaultLogger
public DefaultLogger()Constructor DefaultLogger takes no arguments but initialize all values with default values.
-
-
Method Details
-
recordLatency
public void recordLatency(long startTime, int events, int bytes, long latency) Description copied from interface:ReportLatency
Record the latency.- Specified by:
recordLatency
in interfaceReportLatency
- Parameters:
startTime
- start time.events
- number of events(records).bytes
- number of bytes.latency
- latency value in milliseconds.
-