Package io.sbk.logger
Interface Logger
- All Superinterfaces:
io.perl.logger.PerformanceLogger
,io.perl.logger.Print
- All Known Subinterfaces:
RWLogger
- All Known Implementing Classes:
AbstractRWLogger
,CSVLogger
,GrpcLogger
,PrometheusLogger
,Sl4jLogger
,SystemLogger
public interface Logger
extends io.perl.logger.PerformanceLogger
Interface for recoding/printing results.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addArgs
(InputOptions params) Add the Metric type specific command line arguments.void
close
(ParsedOptions params) Close the Logger.void
open
(ParsedOptions params, String storageName, Action action, io.time.Time time) Open the Logger.void
parseArgs
(ParsedOptions params) Parse the Metric specific command line arguments.default void
setExceptionHandler
(io.perl.exception.ExceptionHandler handler) Default implementation for setting exception handler.Methods inherited from interface io.perl.logger.PerformanceLogger
getMaxLatency, getMinLatency, getPercentiles, getPrintingIntervalSeconds, getTimeUnit, printTotal
Methods inherited from interface io.perl.logger.Print
print
-
Method Details
-
addArgs
Add the Metric type specific command line arguments.- Parameters:
params
- InputOptions object to be extended.- Throws:
IllegalArgumentException
- If an exception occurred.
-
parseArgs
Parse the Metric specific command line arguments.- Parameters:
params
- InputOptions object to be parsed for driver specific parameters/arguments.- Throws:
IllegalArgumentException
- If an exception occurred.
-
open
void open(ParsedOptions params, String storageName, Action action, io.time.Time time) throws IOException Open the Logger.- Parameters:
params
- InputOptions object to be parsed for driver specific parameters/arguments.storageName
- The Name of the storage.action
- action to printtime
- time interface- Throws:
IOException
- If an exception occurred.
-
close
Close the Logger.- Parameters:
params
- InputOptions object to be parsed for driver specific parameters/arguments.- Throws:
IOException
- If an exception occurred.
-
setExceptionHandler
default void setExceptionHandler(io.perl.exception.ExceptionHandler handler) Default implementation for setting exception handler. if the logger encounters any exception, it can report to SBK.- Parameters:
handler
- Exception handler
-