public final class MasterBenchTaskResult extends MasterBenchTaskResultBase<MasterBenchParameters>
mBaseParameters, mDurationMs, mEndMs, mErrors, mParameters, mRecordStartMs
CLASS_NAME_FIELD
Constructor and Description |
---|
MasterBenchTaskResult()
Creates an instance.
|
Modifier and Type | Method and Description |
---|---|
TaskResult.Aggregator |
aggregator() |
MasterBenchTaskResultStatistics |
getStatistics() |
Map<String,MasterBenchTaskResultStatistics> |
getStatisticsPerMethod() |
void |
incrementNumSuccess(long numSuccess)
Increments the number of successes by an amount.
|
void |
putStatisticsForMethod(String method,
MasterBenchTaskResultStatistics statistics) |
void |
setStatistics(MasterBenchTaskResultStatistics statistics) |
void |
setStatisticsPerMethod(Map<String,MasterBenchTaskResultStatistics> statisticsPerMethod) |
addErrorMessage, aggregateByWorker, getBaseParameters, getDurationMs, getEndMs, getErrors, getParameters, getRecordStartMs, merge, setBaseParameters, setDurationMs, setEndMs, setErrors, setParameters, setRecordStartMs
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
fromJson, fromJson, getClassName, setClassName, toJson
public void incrementNumSuccess(long numSuccess)
numSuccess
- the amount to increment bypublic 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)
putStatisticsForMethod
in class MasterBenchTaskResultBase<MasterBenchParameters>
method
- the name of the method to insert statistics forstatistics
- the statistics for the methodpublic TaskResult.Aggregator aggregator()
Copyright © 2023. All Rights Reserved.