Package org.voltdb.client
Class ClientStatsUtil
java.lang.Object
org.voltdb.client.ClientStatsUtil
Utility methods for use with
ClientStats objects.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidwriteSummaryCSV(String statsRowName, ClientStats stats, String path) Write a single line of comma-separated values to the file specified.static voidwriteSummaryCSV(ClientStats stats, String path) Append a single line of comma-separated values to the file specified.
-
Constructor Details
-
ClientStatsUtil
public ClientStatsUtil()
-
-
Method Details
-
writeSummaryCSV
Append a single line of comma-separated values to the file specified. Used mainly for collecting results from benchmarks.The format of this output is subject to change between versions. As of V11.0 there are 13 fields. The format is:
- Timestamp (ms) of creation of the given
ClientStatsinstance, stats. - Duration from first procedure call within the given
ClientStatsinstance until this call. - Count of invocations completed.
- Minimum round trip latency estimate.
- Maximum round trip latency estimate.
- 95-percentile round trip latency estimate.
- 99-percentile round trip latency estimate.
- 99.9-percentile round trip latency estimate.
- 99.99-percentile round trip latency estimate.
- 99.999-percentile round trip latency estimate.
- Count of invocation errors.
- Count of invocation aborts.
- Count of invocation timeouts.
All times are given in milliseconds.
- Parameters:
stats-ClientStatsinstance with relevant statspath- path to write to, passed toFileWriter(String)- Throws:
IOException- on any file write error
- Timestamp (ms) of creation of the given
-
writeSummaryCSV
public static void writeSummaryCSV(String statsRowName, ClientStats stats, String path) throws IOException Write a single line of comma-separated values to the file specified. Used mainly for collecting results from benchmarks.The format of this output is subject to change between versions. See
writeSummaryCSV(ClientStats, String)for the format.This variation on
writeSummaryCSVinserts an initial column containing a user-specified string; this can be used to identify the row. Users should not use a mix of the two forms ofwriteSummaryCSVon the same file, since the format will be inconsistent.- Parameters:
statsRowName- name to be inserted as first columnstats-ClientStatsinstance with relevant statspath- path to write to, passed toFileWriter(String)- Throws:
IOException- on any file write error
-