Package org.voltdb.client
Class ClientStatsUtil
java.lang.Object
org.voltdb.client.ClientStatsUtil
Utility methods for use with
ClientStats
objects.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
writeSummaryCSV
(String statsRowName, ClientStats stats, String path) Write a single line of comma-separated values to the file specified.static void
writeSummaryCSV
(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
ClientStats
instance, stats. - Duration from first procedure call within the given
ClientStats
instance 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
-ClientStats
instance 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
writeSummaryCSV
inserts 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 ofwriteSummaryCSV
on the same file, since the format will be inconsistent.- Parameters:
statsRowName
- name to be inserted as first columnstats
-ClientStats
instance with relevant statspath
- path to write to, passed toFileWriter(String)
- Throws:
IOException
- on any file write error
-