Class TimeRateAggregator

  • All Implemented Interfaces:
    org.apache.jmeter.report.processor.Aggregator

    
    public class TimeRateAggregator
     implements Aggregator
                        

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

    Since:

    3.0

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      public long count
      public long granularity
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      long getCount() Gets the number of aggregated values.
      final long getGranularity()
      final void setGranularity(long granularity)
      double getResult() Gets the result of the aggregation using stored values.
      void addValue(double value) Adds the specified value to the storage of the current aggregator.
      void reset() Reset the state of the aggregator.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TimeRateAggregator

        TimeRateAggregator()
    • Method Detail

      • getCount

         long getCount()

        Gets the number of aggregated values.

        Returns:

        the number of aggregated values

      • setGranularity

         final void setGranularity(long granularity)
        Parameters:
        granularity - the granularity to set
      • getResult

         double getResult()

        Gets the result of the aggregation using stored values.

        Returns:

        the result of the aggregation.

      • addValue

         void addValue(double value)

        Adds the specified value to the storage of the current aggregator.

        Parameters:
        value - the value to aggregate
      • reset

         void reset()

        Reset the state of the aggregator.