Interface IOStatisticsStoreBuilder
public interface IOStatisticsStoreBuilder
Builder of the
IOStatisticsStore implementation.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the collector.withCounters(String... keys) Declare a varargs list of counters to add.withDurationTracking(String... prefixes) Add a statistic in the counter, min, max and mean maps for each declared statistic prefix.withGauges(String... keys) Declare a varargs list of gauges to add.withMaximums(String... keys) Declare a varargs list of maximums to add.withMeanStatistics(String... keys) Declare a varargs list of means to add.withMinimums(String... keys) Declare a varargs list of minimums to add.withSampleTracking(String... prefixes) A value which is tracked with counter/min/max/mean.
-
Method Details
-
withCounters
Declare a varargs list of counters to add.- Parameters:
keys- names of statistics.- Returns:
- this builder.
-
withGauges
Declare a varargs list of gauges to add.- Parameters:
keys- names of statistics.- Returns:
- this builder.
-
withMaximums
Declare a varargs list of maximums to add.- Parameters:
keys- names of statistics.- Returns:
- this builder.
-
withMinimums
Declare a varargs list of minimums to add.- Parameters:
keys- names of statistics.- Returns:
- this builder.
-
withMeanStatistics
Declare a varargs list of means to add.- Parameters:
keys- names of statistics.- Returns:
- this builder.
-
withDurationTracking
Add a statistic in the counter, min, max and mean maps for each declared statistic prefix.- Parameters:
prefixes- prefixes for the stats.- Returns:
- this
-
withSampleTracking
A value which is tracked with counter/min/max/mean. Similar towithDurationTracking(String...)but without the failure option and with the same name across all categories.- Parameters:
prefixes- prefixes to add.- Returns:
- the builder
-
build
IOStatisticsStore build()Build the collector.- Returns:
- a new collector.
-