Package alluxio.stress.common
Class TaskResultStatistics
- java.lang.Object
-
- alluxio.stress.common.TaskResultStatistics
-
- Direct Known Subclasses:
CompactionTaskResultStatistics,JobServiceBenchTaskResultStatistics,MasterBenchTaskResultStatistics
public class TaskResultStatistics extends java.lang.Objectabstract class that calculate statistics forTaskResult.
-
-
Field Summary
Fields Modifier and Type Field Description long[]mMaxResponseTimeNslongmNumSuccessesbyte[]mResponseTimeNsRaw
-
Constructor Summary
Constructors Modifier Constructor Description protectedTaskResultStatistics()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidencodeResponseTimeNsRaw(org.HdrHistogram.Histogram responseTimeNs)Encodes the histogram into the internal byte array.voidmerge(TaskResultStatistics statistics)Merges (updates) a task result statistics with this statistics.SummaryStatisticstoBenchSummaryStatistics()Converts this class toSummaryStatistics.
-
-
-
Method Detail
-
merge
public void merge(TaskResultStatistics statistics) throws java.lang.Exception
Merges (updates) a task result statistics with this statistics.- Parameters:
statistics- the task result statistics to merge- Throws:
java.lang.Exception
-
encodeResponseTimeNsRaw
public void encodeResponseTimeNsRaw(org.HdrHistogram.Histogram responseTimeNs)
Encodes the histogram into the internal byte array.- Parameters:
responseTimeNs- the histogram (in ns)
-
toBenchSummaryStatistics
public SummaryStatistics toBenchSummaryStatistics() throws java.util.zip.DataFormatException
Converts this class toSummaryStatistics.- Returns:
- new SummaryStatistics
- Throws:
java.util.zip.DataFormatException- if histogram decoding from compressed byte buffer fails
-
-