Package alluxio.stress.master
Class MasterBenchTaskResult
- java.lang.Object
-
- alluxio.stress.master.MasterBenchTaskResultBase<MasterBenchParameters>
-
- alluxio.stress.master.MasterBenchTaskResult
-
- All Implemented Interfaces:
TaskResult,alluxio.util.JsonSerializable
public final class MasterBenchTaskResult extends MasterBenchTaskResultBase<MasterBenchParameters>
The task result for the master stress tests.
-
-
Field Summary
-
Fields inherited from class alluxio.stress.master.MasterBenchTaskResultBase
mBaseParameters, mDurationMs, mEndMs, mErrors, mParameters, mRecordStartMs
-
-
Constructor Summary
Constructors Constructor Description MasterBenchTaskResult()Creates an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TaskResult.Aggregatoraggregator()MasterBenchTaskResultStatisticsgetStatistics()java.util.Map<java.lang.String,MasterBenchTaskResultStatistics>getStatisticsPerMethod()voidincrementNumSuccess(long numSuccess)Increments the number of successes by an amount.voidputStatisticsForMethod(java.lang.String method, MasterBenchTaskResultStatistics statistics)voidsetStatistics(MasterBenchTaskResultStatistics statistics)voidsetStatisticsPerMethod(java.util.Map<java.lang.String,MasterBenchTaskResultStatistics> statisticsPerMethod)-
Methods inherited from class alluxio.stress.master.MasterBenchTaskResultBase
addErrorMessage, aggregateByWorker, getBaseParameters, getDurationMs, getEndMs, getErrors, getParameters, getRecordStartMs, merge, setBaseParameters, setDurationMs, setEndMs, setErrors, setParameters, setRecordStartMs
-
-
-
-
Method Detail
-
incrementNumSuccess
public void incrementNumSuccess(long numSuccess)
Increments the number of successes by an amount.- Parameters:
numSuccess- the amount to increment by
-
getStatistics
public MasterBenchTaskResultStatistics getStatistics()
- Returns:
- the statistics
-
setStatistics
public void setStatistics(MasterBenchTaskResultStatistics statistics)
- Parameters:
statistics- the statistics
-
getStatisticsPerMethod
public java.util.Map<java.lang.String,MasterBenchTaskResultStatistics> getStatisticsPerMethod()
- Returns:
- the statistics per method
-
setStatisticsPerMethod
public void setStatisticsPerMethod(java.util.Map<java.lang.String,MasterBenchTaskResultStatistics> statisticsPerMethod)
- Parameters:
statisticsPerMethod- the statistics per method
-
putStatisticsForMethod
public void putStatisticsForMethod(java.lang.String method, MasterBenchTaskResultStatistics statistics)- Specified by:
putStatisticsForMethodin classMasterBenchTaskResultBase<MasterBenchParameters>- Parameters:
method- the name of the method to insert statistics forstatistics- the statistics for the method
-
aggregator
public TaskResult.Aggregator aggregator()
- Returns:
- the aggregator that can produce a summary
-
-