Interface IOStatisticsStoreBuilder


public interface IOStatisticsStoreBuilder
Builder of the IOStatisticsStore implementation.
  • Method Details

    • withCounters

      IOStatisticsStoreBuilder withCounters(String... keys)
      Declare a varargs list of counters to add.
      Parameters:
      keys - names of statistics.
      Returns:
      this builder.
    • withGauges

      IOStatisticsStoreBuilder withGauges(String... keys)
      Declare a varargs list of gauges to add.
      Parameters:
      keys - names of statistics.
      Returns:
      this builder.
    • withMaximums

      IOStatisticsStoreBuilder withMaximums(String... keys)
      Declare a varargs list of maximums to add.
      Parameters:
      keys - names of statistics.
      Returns:
      this builder.
    • withMinimums

      IOStatisticsStoreBuilder withMinimums(String... keys)
      Declare a varargs list of minimums to add.
      Parameters:
      keys - names of statistics.
      Returns:
      this builder.
    • withMeanStatistics

      IOStatisticsStoreBuilder withMeanStatistics(String... keys)
      Declare a varargs list of means to add.
      Parameters:
      keys - names of statistics.
      Returns:
      this builder.
    • withDurationTracking

      IOStatisticsStoreBuilder withDurationTracking(String... prefixes)
      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

      IOStatisticsStoreBuilder withSampleTracking(String... prefixes)
      A value which is tracked with counter/min/max/mean. Similar to withDurationTracking(String...) but without the failure option and with the same name across all categories.
      Parameters:
      prefixes - prefixes to add.
      Returns:
      the builder
    • build

      Build the collector.
      Returns:
      a new collector.