public class JobServiceBenchTaskResultStatistics extends Object
JobServiceBenchTaskResult
.Modifier and Type | Field and Description |
---|---|
static int |
MAX_RESPONSE_BUCKETS |
long[] |
mMaxResponseTimeNs |
long |
mNumSuccess |
byte[] |
mResponseTimeNsRaw |
Constructor and Description |
---|
JobServiceBenchTaskResultStatistics()
Creates an instance.
|
Modifier and Type | Method and Description |
---|---|
void |
encodeResponseTimeNsRaw(org.HdrHistogram.Histogram responseTimeNs)
Encodes the histogram into the internal byte array.
|
void |
merge(JobServiceBenchTaskResultStatistics statistics)
Merges (updates) a task result statistics with this statistics.
|
SummaryStatistics |
toBenchSummaryStatistics()
Converts this class to
SummaryStatistics . |
public long mNumSuccess
public static final int MAX_RESPONSE_BUCKETS
public byte[] mResponseTimeNsRaw
public long[] mMaxResponseTimeNs
public JobServiceBenchTaskResultStatistics()
public void merge(JobServiceBenchTaskResultStatistics statistics) throws Exception
statistics
- the task result statistics to mergeException
public void encodeResponseTimeNsRaw(org.HdrHistogram.Histogram responseTimeNs)
responseTimeNs
- the histogram (in ns)public SummaryStatistics toBenchSummaryStatistics() throws DataFormatException
SummaryStatistics
.DataFormatException
- if histogram decoding from compressed byte buffer failsCopyright © 2023. All Rights Reserved.