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

public class DefaultLogger extends ResultsLogger implements ReportLatency
Class DefaultLogger.
  • 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 - String
      percentiles - double[]
      latencyTimeUnit - TimeUnit
      minLatency - long
      maxLatency - 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 interface ReportLatency
      Parameters:
      startTime - start time.
      events - number of events(records).
      bytes - number of bytes.
      latency - latency value in milliseconds.