public final class JobServiceBenchTaskResult extends java.lang.Object implements TaskResult
CLASS_NAME_FIELD| Constructor and Description |
|---|
JobServiceBenchTaskResult()
Creates an instance.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfromJson, fromJson, getClassName, setClassName, toJsonpublic JobServiceBenchTaskResult()
public void merge(JobServiceBenchTaskResult result) throws java.lang.Exception
result - the task result to mergejava.lang.Exceptionpublic void incrementNumSuccess(long numSuccess)
numSuccess - the amount to increment bypublic BaseParameters getBaseParameters()
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 java.util.List<java.lang.String> getErrors()
public void setErrors(java.util.List<java.lang.String> errors)
errors - the list of errorspublic void addErrorMessage(java.lang.String errMesssage)
errMesssage - the error message to addpublic JobServiceBenchTaskResultStatistics getStatistics()
public void setStatistics(JobServiceBenchTaskResultStatistics statistics)
statistics - the statisticspublic java.util.Map<java.lang.String,JobServiceBenchTaskResultStatistics> getStatisticsPerMethod()
public void setStatisticsPerMethod(java.util.Map<java.lang.String,JobServiceBenchTaskResultStatistics> statisticsPerMethod)
statisticsPerMethod - the statistics per methodpublic void putStatisticsForMethod(java.lang.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 TaskResultCopyright © 2021. All Rights Reserved.