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
-
-
Field Summary
Fields Modifier and Type Field Description public long
count
public long
granularity
-
Constructor Summary
Constructors Constructor Description TimeRateAggregator()
-
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. -
-
Method Detail
-
getCount
long getCount()
Gets the number of aggregated values.
- Returns:
the number of aggregated values
-
getGranularity
final long getGranularity()
- Returns:
the granularity
-
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.
-
-
-
-