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 TypeMethodDescriptiondefault 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.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 interfaceio.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 interfaceWriteRequestsLogger
-
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 interfaceReadRequestsLogger
-
getMaxWriterIDs
default int getMaxWriterIDs()Default method to indicate to record write requests or not.- Specified by:
getMaxWriterIDs
in interfaceWriteRequestsLogger
-
getMaxReaderIDs
default int getMaxReaderIDs()Default method to indicate to record read requests or not.- Specified by:
getMaxReaderIDs
in interfaceReadRequestsLogger
-
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)
-