public final class JobServiceBenchTaskResult extends Object implements TaskResult
CLASS_NAME_FIELD
Constructor and Description |
---|
JobServiceBenchTaskResult()
Creates an instance.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
fromJson, fromJson, getClassName, setClassName, toJson
public JobServiceBenchTaskResult()
public void merge(JobServiceBenchTaskResult result) throws Exception
result
- the task result to mergeException
public void aggregateByWorker(JobServiceBenchTaskResult result) throws Exception
result
- the task result to mergeException
public void incrementNumSuccess(long numSuccess)
numSuccess
- the amount to increment bypublic BaseParameters getBaseParameters()
getBaseParameters
in interface TaskResult
public void setBaseParameters(BaseParameters baseParameters)
baseParameters
- the base parameterspublic JobServiceBenchParameters getParameters()
public void setParameters(JobServiceBenchParameters 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 List<String> getErrors()
getErrors
in interface TaskResult
public void addErrorMessage(String errMesssage)
errMesssage
- the error message to addpublic JobServiceBenchTaskResultStatistics getStatistics()
public void setStatistics(JobServiceBenchTaskResultStatistics statistics)
statistics
- the statisticspublic Map<String,JobServiceBenchTaskResultStatistics> getStatisticsPerMethod()
public void setStatisticsPerMethod(Map<String,JobServiceBenchTaskResultStatistics> statisticsPerMethod)
statisticsPerMethod
- the statistics per methodpublic void putStatisticsForMethod(String method, JobServiceBenchTaskResultStatistics 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.