org.apache.jmeter.report.processor

## Class TimeRateAggregator

- java.lang.Object
- - org.apache.jmeter.report.processor.TimeRateAggregator

- All Implemented Interfaces:
    Aggregator

      public class TimeRateAggregator
      extends Object
      implements Aggregator

  The class TimeRateAggregator is used to get samples rate by second.
  Since:
    3.0

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `TimeRateAggregator()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `addValue(double value)` Adds the specified value to the storage of the current aggregator.
    `long` | `getCount()` Gets the number of aggregated values.
    `long` | `getGranularity()`
    `double` | `getResult()` Gets the result of the aggregation using stored values.
    `void` | `reset()` Reset the state of the aggregator.
    `void` | `setGranularity(long granularity)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### TimeRateAggregator

          public TimeRateAggregator()

  - ### Method Detail

    - #### getGranularity

          public final long getGranularity()

      Returns:
        the granularity

    - #### setGranularity

          public final void setGranularity(long granularity)

      Parameters:
        `granularity` - the granularity to set

    - #### getCount

          public long getCount()

      Description copied from interface: `Aggregator`
      Gets the number of aggregated values.
      Specified by:
        `getCount` in interface `Aggregator`
      Returns:
        the number of aggregated values

    - #### getResult

          public double getResult()

      Description copied from interface: `Aggregator`
      Gets the result of the aggregation using stored values.
      Specified by:
        `getResult` in interface `Aggregator`
      Returns:
        the result of the aggregation.

    - #### addValue

          public void addValue(double value)

      Description copied from interface: `Aggregator`
      Adds the specified value to the storage of the current aggregator.
      Specified by:
        `addValue` in interface `Aggregator`
      Parameters:
        `value` - the value to aggregate

    - #### reset

          public void reset()

      Description copied from interface: `Aggregator`
      Reset the state of the aggregator.
      Specified by:
        `reset` in interface `Aggregator`

Copyright © 1998-2021 Apache Software Foundation. All Rights Reserved.