Interface WriteRequestsLogger

All Known Subinterfaces:
RWLogger
All Known Implementing Classes:
AbstractRWLogger, CSVLogger, GrpcLogger, PrometheusLogger, Sl4jLogger, SystemLogger

public interface WriteRequestsLogger
Write-side request logging hooks used by SBK loggers. Implementations can optionally aggregate per-writer metrics (counts, bytes, timeouts) to be emitted periodically or exported to external systems.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Maximum number of writer IDs the logger expects to track.
    void
    recordWriteRequests(int writerId, long startTime, long bytes, long events)
    Record one or more write requests attributed to a writer.
    void
    recordWriteTimeoutEvents(int writerId, long startTime, long timeoutEvents)
    Record write timeout events for a writer.
  • Method Details

    • recordWriteRequests

      void recordWriteRequests(int writerId, long startTime, long bytes, long events)
      Record one or more write requests attributed to a writer.
      Parameters:
      writerId - logical writer identifier (0..N-1)
      startTime - write start time in the active TimeUnit
      bytes - bytes written for these events
      events - number of write events
    • recordWriteTimeoutEvents

      void recordWriteTimeoutEvents(int writerId, long startTime, long timeoutEvents)
      Record write timeout events for a writer.
      Parameters:
      writerId - logical writer identifier (0..N-1)
      startTime - time when timeouts were observed
      timeoutEvents - number of timeout events
    • getMaxWriterIDs

      int getMaxWriterIDs()
      Maximum number of writer IDs the logger expects to track. Returning 0 disables per-writer request logging.
      Returns:
      max writer IDs