public final class JobServiceBenchTaskResult extends java.lang.Object implements TaskResult
CLASS_NAME_FIELD| Constructor and Description |
|---|
JobServiceBenchTaskResult()
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addErrorMessage(java.lang.String errMesssage) |
void |
aggregateByWorker(JobServiceBenchTaskResult result)
Merges (updates) a task result with this result except the error information.
|
TaskResult.Aggregator |
aggregator() |
BaseParameters |
getBaseParameters() |
long |
getEndMs() |
java.util.List<java.lang.String> |
getErrors() |
long[] |
getMaxResponseTimeNs() |
JobServiceBenchParameters |
getParameters() |
long |
getRecordStartMs() |
JobServiceBenchTaskResultStatistics |
getStatistics() |
java.util.Map<java.lang.String,JobServiceBenchTaskResultStatistics> |
getStatisticsPerMethod() |
void |
incrementNumSuccess(long numSuccess)
Increments the number of successes by an amount.
|
void |
merge(JobServiceBenchTaskResult result)
Merges (updates) a task result with this result.
|
void |
putStatisticsForMethod(java.lang.String method,
JobServiceBenchTaskResultStatistics statistics) |
void |
setBaseParameters(BaseParameters baseParameters) |
void |
setEndMs(long endMs) |
void |
setErrors(java.util.List<java.lang.String> errors) |
void |
setMaxResponseTimeNs(long[] maxResponseTimeNs) |
void |
setParameters(JobServiceBenchParameters parameters) |
void |
setRecordStartMs(long recordStartMs) |
void |
setStatistics(JobServiceBenchTaskResultStatistics statistics) |
void |
setStatisticsPerMethod(java.util.Map<java.lang.String,JobServiceBenchTaskResultStatistics> statisticsPerMethod) |
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 aggregateByWorker(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()
getBaseParameters in interface TaskResultpublic 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()
getErrors in interface TaskResultpublic 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 © 2023. All Rights Reserved.