Package alluxio.stress.worker
Class WorkerBenchTaskResult
- java.lang.Object
-
- alluxio.stress.worker.WorkerBenchTaskResult
-
- All Implemented Interfaces:
TaskResult,alluxio.util.JsonSerializable
public final class WorkerBenchTaskResult extends java.lang.Object implements TaskResult
The task results for the worker stress test.
-
-
Constructor Summary
Constructors Constructor Description WorkerBenchTaskResult()Creates an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddErrorMessage(java.lang.String errMesssage)voidaggregateByWorker(WorkerBenchTaskResult result)Merges (updates) a task result with this result except the error information.TaskResult.Aggregatoraggregator()BaseParametersgetBaseParameters()longgetEndMs()java.util.List<java.lang.String>getErrors()longgetIOBytes()WorkerBenchParametersgetParameters()longgetRecordStartMs()voidincrementIOBytes(long ioBytes)Increments the bytes of IO an amount.voidmerge(WorkerBenchTaskResult result)Merges (updates) a task result with this result.voidsetBaseParameters(BaseParameters baseParameters)voidsetEndMs(long endMs)voidsetErrors(java.util.List<java.lang.String> errors)voidsetIOBytes(long ioBytes)voidsetParameters(WorkerBenchParameters parameters)voidsetRecordStartMs(long recordStartMs)
-
-
-
Method Detail
-
merge
public void merge(WorkerBenchTaskResult result) throws java.lang.Exception
Merges (updates) a task result with this result.- Parameters:
result- the task result to merge- Throws:
java.lang.Exception
-
aggregateByWorker
public void aggregateByWorker(WorkerBenchTaskResult result)
Merges (updates) a task result with this result except the error information.- Parameters:
result- the task result to merge
-
getIOBytes
public long getIOBytes()
- Returns:
- bytes of IO
-
incrementIOBytes
public void incrementIOBytes(long ioBytes)
Increments the bytes of IO an amount.- Parameters:
ioBytes- the amount to increment by
-
setIOBytes
public void setIOBytes(long ioBytes)
- Parameters:
ioBytes- bytes of IO
-
getBaseParameters
public BaseParameters getBaseParameters()
- Specified by:
getBaseParametersin interfaceTaskResult- Returns:
- the base parameters of the result
-
setBaseParameters
public void setBaseParameters(BaseParameters baseParameters)
- Parameters:
baseParameters- the base parameters
-
getParameters
public WorkerBenchParameters getParameters()
- Returns:
- the parameters
-
setParameters
public void setParameters(WorkerBenchParameters parameters)
- Parameters:
parameters- the parameters
-
getRecordStartMs
public long getRecordStartMs()
- Returns:
- the start time (in ms)
-
setRecordStartMs
public void setRecordStartMs(long recordStartMs)
- Parameters:
recordStartMs- the start time (in ms)
-
getEndMs
public long getEndMs()
- Returns:
- the end time (in ms)
-
setEndMs
public void setEndMs(long endMs)
- Parameters:
endMs- the end time (in ms)
-
getErrors
public java.util.List<java.lang.String> getErrors()
- Specified by:
getErrorsin interfaceTaskResult- Returns:
- the list of errors in the result
-
setErrors
public void setErrors(java.util.List<java.lang.String> errors)
- Parameters:
errors- the list of errors
-
addErrorMessage
public void addErrorMessage(java.lang.String errMesssage)
- Parameters:
errMesssage- the error message to add
-
aggregator
public TaskResult.Aggregator aggregator()
- Specified by:
aggregatorin interfaceTaskResult- Returns:
- the aggregator that can produce a summary
-
-