Package io.sbk.logger

Interface RWLogger

All Superinterfaces:
CountReaders, CountRW, CountWriters, Logger, io.perl.logger.PerformanceLogger, io.perl.logger.Print, ReadRequestsLogger, io.perl.api.ReportLatency, RWPrint, WriteRequestsLogger
All Known Implementing Classes:
AbstractRWLogger, CSVLogger, GrpcLogger, PrometheusLogger, Sl4jLogger, SystemLogger

public non-sealed interface RWLogger extends Logger, CountRW, io.perl.api.ReportLatency, WriteRequestsLogger, ReadRequestsLogger, RWPrint
Interface for recoding/printing results.
  • Method Summary

    Modifier and Type
    Method
    Description
    default int
    Default method to indicate to record read requests or not.
    default int
    Default method to indicate to record write requests or not.
    void
    printTotal(int writers, int maxWriters, int readers, int maxReaders, long writeRequestBytes, double writeRequestMbPerSec, long writeRequestRecords, double writeRequestRecordsPerSec, long readRequestBytes, double readRequestMBPerSec, long readRequestRecords, double readRequestRecordsPerSec, long writeResponsePendingRecords, long writeResponsePendingBytes, long readResponsePendingRecords, long readResponsePendingBytes, long writeReadRequestPendingRecords, long writeReadRequestPendingBytes, long writeTimeoutEvents, double writeTimeoutEventsPerSec, long readTimeoutEvents, double readTimeoutEventsPerSec, double seconds, long bytes, long records, double recsPerSec, double mbPerSec, double avgLatency, long minLatency, long maxLatency, long invalid, long lowerDiscard, long higherDiscard, long slc1, long slc2, long[] percentileValues)
     
    default void
    recordLatency(long startTime, int events, int bytes, long latency)
    Default method to record latency of every/multiple event(s).
    default void
    recordReadRequests(int readerId, long startTime, long bytes, long events)
    Default method to record every/multiple read event(s).
    default void
    recordWriteRequests(int writerId, long startTime, long bytes, long events)
    Default method to record every/multiple write event(s).

    Methods inherited from interface io.sbk.logger.CountReaders

    decrementReaders, incrementReaders

    Methods inherited from interface io.sbk.logger.CountWriters

    decrementWriters, incrementWriters

    Methods inherited from interface io.sbk.logger.Logger

    addArgs, close, open, parseArgs, setExceptionHandler

    Methods inherited from interface io.perl.logger.PerformanceLogger

    getMaxLatency, getMinLatency, getPercentiles, getPrintingIntervalSeconds, getTimeUnit, printTotal

    Methods inherited from interface io.perl.logger.Print

    print

    Methods inherited from interface io.sbk.logger.ReadRequestsLogger

    recordReadTimeoutEvents

    Methods inherited from interface io.sbk.logger.RWPrint

    print

    Methods inherited from interface io.sbk.logger.WriteRequestsLogger

    recordWriteTimeoutEvents
  • Method Details

    • recordLatency

      default void recordLatency(long startTime, int events, int bytes, long latency)
      Default method to record latency of every/multiple event(s).
      Specified by:
      recordLatency in interface io.perl.api.ReportLatency
    • recordWriteRequests

      default void recordWriteRequests(int writerId, long startTime, long bytes, long events)
      Default method to record every/multiple write event(s).
      Specified by:
      recordWriteRequests in interface WriteRequestsLogger
    • recordReadRequests

      default void recordReadRequests(int readerId, long startTime, long bytes, long events)
      Default method to record every/multiple read event(s).
      Specified by:
      recordReadRequests in interface ReadRequestsLogger
    • getMaxWriterIDs

      default int getMaxWriterIDs()
      Default method to indicate to record write requests or not.
      Specified by:
      getMaxWriterIDs in interface WriteRequestsLogger
    • getMaxReaderIDs

      default int getMaxReaderIDs()
      Default method to indicate to record read requests or not.
      Specified by:
      getMaxReaderIDs in interface ReadRequestsLogger
    • printTotal

      void printTotal(int writers, int maxWriters, int readers, int maxReaders, long writeRequestBytes, double writeRequestMbPerSec, long writeRequestRecords, double writeRequestRecordsPerSec, long readRequestBytes, double readRequestMBPerSec, long readRequestRecords, double readRequestRecordsPerSec, long writeResponsePendingRecords, long writeResponsePendingBytes, long readResponsePendingRecords, long readResponsePendingBytes, long writeReadRequestPendingRecords, long writeReadRequestPendingBytes, long writeTimeoutEvents, double writeTimeoutEventsPerSec, long readTimeoutEvents, double readTimeoutEventsPerSec, double seconds, long bytes, long records, double recsPerSec, double mbPerSec, double avgLatency, long minLatency, long maxLatency, long invalid, long lowerDiscard, long higherDiscard, long slc1, long slc2, long[] percentileValues)