Class WebConsoleLoggerSupport
java.lang.Object
io.sbk.webconsole.WebConsoleLoggerSupport
- All Implemented Interfaces:
AutoCloseable
Shared Local Web Console configuration, lifecycle, and snapshot construction for SBK, SBM, and GEM loggers.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringWeb console benchmark-board name CLI option.static final StringWeb console browser-open CLI option.static final StringWeb console port CLI option.static final StringWeb console history duration CLI option.static final StringWeb console idle-timeout CLI option. -
Constructor Summary
ConstructorsConstructorDescriptionCreates Local Web Console support with configuration loaded when arguments are added. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddArgs(InputOptions params) Adds the Local Web Console command-line options.voidclose()String[]Returns web console option names, including the command-line prefix.String[]Returns the current web console option/value pairs for forwarding to SBM.voidStarts or reuses the Local Web Console and registers a benchmark run.voidparseArgs(ParsedOptions params) Parses Local Web Console options.voidpublish(int connections, int maxConnections, 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 recordsPerSec, double mbPerSec, double averageLatency, long minimumLatency, long maximumLatency, long invalid, long lowerDiscard, long higherDiscard, long slc1, long slc2, long[] percentileLatencies, long[] percentileLatencyCounts) Publishes one regular reporting-window snapshot without blocking the caller on HTTP I/O.
-
Field Details
-
PORT_OPTION
-
OPEN_OPTION
-
SNAPSHOT_MINUTES_OPTION
Web console history duration CLI option.- See Also:
-
TIMEOUT_OPTION
-
BOARD_NAME_OPTION
-
-
Constructor Details
-
WebConsoleLoggerSupport
public WebConsoleLoggerSupport()Creates Local Web Console support with configuration loaded when arguments are added.
-
-
Method Details
-
addArgs
Adds the Local Web Console command-line options.- Parameters:
params- input option registry
-
parseArgs
Parses Local Web Console options.- Parameters:
params- parsed command-line options- Throws:
IllegalArgumentException- if a web console option is invalid
-
open
public void open(String source, String storage, Action action, io.time.TimeUnit timeUnit, double[] percentiles) throws IOException Starts or reuses the Local Web Console and registers a benchmark run.- Parameters:
source- source application namestorage- storage driver nameaction- benchmark actiontimeUnit- latency time unitpercentiles- configured percentile labels- Throws:
IOException- if the web console cannot register this benchmark run
-
publish
public void publish(int connections, int maxConnections, 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 recordsPerSec, double mbPerSec, double averageLatency, long minimumLatency, long maximumLatency, long invalid, long lowerDiscard, long higherDiscard, long slc1, long slc2, long[] percentileLatencies, long[] percentileLatencyCounts) Publishes one regular reporting-window snapshot without blocking the caller on HTTP I/O.- Parameters:
connections- active connectionsmaxConnections- maximum connectionswriters- active writersmaxWriters- maximum writersreaders- active readersmaxReaders- maximum readerswriteRequestBytes- write request byteswriteRequestMbPerSec- write request throughputwriteRequestRecords- write request recordswriteRequestRecordsPerSec- write request ratereadRequestBytes- read request bytesreadRequestMbPerSec- read request throughputreadRequestRecords- read request recordsreadRequestRecordsPerSec- read request ratewriteResponsePendingRecords- pending write recordswriteResponsePendingBytes- pending write bytesreadResponsePendingRecords- pending read recordsreadResponsePendingBytes- pending read byteswriteReadRequestPendingRecords- pending combined recordswriteReadRequestPendingBytes- pending combined byteswriteTimeoutEvents- write timeout eventswriteTimeoutEventsPerSec- write timeout ratereadTimeoutEvents- read timeout eventsreadTimeoutEventsPerSec- read timeout rateseconds- elapsed secondsbytes- completed bytesrecords- completed recordsrecordsPerSec- completed record ratembPerSec- completed throughputaverageLatency- average latencyminimumLatency- minimum latencymaximumLatency- maximum latencyinvalid- invalid latencieslowerDiscard- low discarded latencieshigherDiscard- high discarded latenciesslc1- first SLC countslc2- second SLC countpercentileLatencies- percentile valuespercentileLatencyCounts- percentile counts
-
getOptionsArgs
Returns web console option names, including the command-line prefix.- Returns:
- web console options
-
getParsedArgs
Returns the current web console option/value pairs for forwarding to SBM.- Returns:
- parsed web console arguments
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-