public final class WorkerBenchTaskResult extends Object implements TaskResult
CLASS_NAME_FIELD
Constructor and Description |
---|
WorkerBenchTaskResult()
Creates an instance.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
fromJson, fromJson, getClassName, setClassName, toJson
public void merge(WorkerBenchTaskResult result) throws Exception
result
- the task result to mergeException
public void aggregateByWorker(WorkerBenchTaskResult result)
result
- the task result to mergepublic long getIOBytes()
public void incrementIOBytes(long ioBytes)
ioBytes
- the amount to increment bypublic void setIOBytes(long ioBytes)
ioBytes
- bytes of IOpublic BaseParameters getBaseParameters()
getBaseParameters
in interface TaskResult
public void setBaseParameters(BaseParameters baseParameters)
baseParameters
- the base parameterspublic WorkerBenchParameters getParameters()
public void setParameters(WorkerBenchParameters parameters)
parameters
- the parameterspublic long getRecordStartMs()
public void setRecordStartMs(long recordStartMs)
recordStartMs
- the start time (in ms)public long getEndMs()
public void setEndMs(long endMs)
endMs
- the end time (in ms)public List<String> getErrors()
getErrors
in interface TaskResult
public List<Long> getThroughputPercentiles()
public void setThroughputPercentiles(List<Long> percentiles)
percentiles
- 100 percentiles for durations of all I/O operationspublic List<Long> getAllThroughput()
public void setAllThroughput(List<Long> allThroughputValues)
allThroughputValues
- all instant throughput values of I/O operationspublic void calculatePercentiles()
public void addErrorMessage(String errMessage)
errMessage
- the error message to addpublic List<WorkerBenchCoarseDataPoint> getDataPoints()
public void addDataPoint(WorkerBenchCoarseDataPoint point)
point
- one data point for one I/O operationpublic void addDataPoints(Collection<WorkerBenchCoarseDataPoint> stats)
stats
- data points for all recorded I/O operationspublic void clearAllThroughput()
public TaskResult.Aggregator aggregator()
aggregator
in interface TaskResult
Copyright © 2023. All Rights Reserved.