public final class MasterBenchTaskResult extends java.lang.Object implements TaskResult
CLASS_NAME_FIELD| Constructor and Description |
|---|
MasterBenchTaskResult()
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addErrorMessage(java.lang.String errMesssage) |
TaskResult.Aggregator |
aggregator() |
BaseParameters |
getBaseParameters() |
long |
getDurationMs() |
long |
getEndMs() |
java.util.List<java.lang.String> |
getErrors() |
long[] |
getMaxResponseTimeNs() |
MasterBenchParameters |
getParameters() |
long |
getRecordStartMs() |
MasterBenchTaskResultStatistics |
getStatistics() |
java.util.Map<java.lang.String,MasterBenchTaskResultStatistics> |
getStatisticsPerMethod() |
void |
incrementNumSuccess(long numSuccess)
Increments the number of successes by an amount.
|
void |
merge(MasterBenchTaskResult result)
Merges (updates) a task result with this result.
|
void |
putStatisticsForMethod(java.lang.String method,
MasterBenchTaskResultStatistics statistics) |
void |
setBaseParameters(BaseParameters baseParameters) |
void |
setDurationMs(long durationMs) |
void |
setEndMs(long endMs) |
void |
setErrors(java.util.List<java.lang.String> errors) |
void |
setMaxResponseTimeNs(long[] maxResponseTimeNs) |
void |
setParameters(MasterBenchParameters parameters) |
void |
setRecordStartMs(long recordStartMs) |
void |
setStatistics(MasterBenchTaskResultStatistics statistics) |
void |
setStatisticsPerMethod(java.util.Map<java.lang.String,MasterBenchTaskResultStatistics> statisticsPerMethod) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfromJson, fromJson, getClassName, setClassName, toJsonpublic void merge(MasterBenchTaskResult result) throws java.lang.Exception
result - the task result to mergejava.lang.Exceptionpublic 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 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 MasterBenchTaskResultStatistics getStatistics()
public void setStatistics(MasterBenchTaskResultStatistics statistics)
statistics - the statisticspublic java.util.Map<java.lang.String,MasterBenchTaskResultStatistics> getStatisticsPerMethod()
public void setStatisticsPerMethod(java.util.Map<java.lang.String,MasterBenchTaskResultStatistics> statisticsPerMethod)
statisticsPerMethod - the statistics per methodpublic void putStatisticsForMethod(java.lang.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 TaskResultCopyright © 2022. All Rights Reserved.