public final class MasterBenchTaskResult extends Object implements TaskResult
CLASS_NAME_FIELD
Constructor and Description |
---|
MasterBenchTaskResult()
Creates an instance.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
fromJson, fromJson, getClassName, setClassName, toJson
public void merge(MasterBenchTaskResult result) throws Exception
result
- the task result to mergeException
public long getDurationMs()
public void setDurationMs(long durationMs)
durationMs
- the duration (in ms)public void incrementNumSuccess(long numSuccess)
numSuccess
- the amount to increment bypublic BaseParameters getBaseParameters()
public void setBaseParameters(BaseParameters baseParameters)
baseParameters
- the base parameterspublic MasterBenchParameters getParameters()
public void setParameters(MasterBenchParameters parameters)
parameters
- the parameterspublic long[] getMaxResponseTimeNs()
public void setMaxResponseTimeNs(long[] maxResponseTimeNs)
maxResponseTimeNs
- the array of max response times (in ns)public 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 void addErrorMessage(String errMesssage)
errMesssage
- the error message to addpublic MasterBenchTaskResultStatistics getStatistics()
public void setStatistics(MasterBenchTaskResultStatistics statistics)
statistics
- the statisticspublic Map<String,MasterBenchTaskResultStatistics> getStatisticsPerMethod()
public void setStatisticsPerMethod(Map<String,MasterBenchTaskResultStatistics> statisticsPerMethod)
statisticsPerMethod
- the statistics per methodpublic void putStatisticsForMethod(String method, MasterBenchTaskResultStatistics statistics)
method
- the name of the method to insert statistics forstatistics
- the statistics for the methodpublic TaskResult.Aggregator aggregator()
aggregator
in interface TaskResult
Copyright © 2023. All Rights Reserved.