public final class WorkerBenchTaskResult extends Object implements TaskResult
CLASS_NAME_FIELD
Constructor and Description |
---|
WorkerBenchTaskResult()
Creates an instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addErrorMessage(String errMesssage) |
TaskResult.Aggregator |
aggregator() |
BaseParameters |
getBaseParameters() |
long |
getEndMs() |
List<String> |
getErrors() |
long |
getIOBytes() |
WorkerBenchParameters |
getParameters() |
long |
getRecordStartMs() |
void |
incrementIOBytes(long ioBytes)
Increments the bytes of IO an amount.
|
void |
merge(WorkerBenchTaskResult result)
Merges (updates) a task result with this result.
|
void |
setBaseParameters(BaseParameters baseParameters) |
void |
setEndMs(long endMs) |
void |
setErrors(List<String> errors) |
void |
setIOBytes(long ioBytes) |
void |
setParameters(WorkerBenchParameters parameters) |
void |
setRecordStartMs(long recordStartMs) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
fromJson, fromJson, getClassName, setClassName, toJson
public void merge(WorkerBenchTaskResult result) throws Exception
result
- the task result to mergeException
public long getIOBytes()
public void incrementIOBytes(long ioBytes)
ioBytes
- the amount to increment bypublic void setIOBytes(long ioBytes)
ioBytes
- bytes of IOpublic BaseParameters getBaseParameters()
public void setBaseParameters(BaseParameters baseParameters)
baseParameters
- the base parameterspublic WorkerBenchParameters getParameters()
public void setParameters(WorkerBenchParameters parameters)
parameters
- the parameterspublic 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 void addErrorMessage(String errMesssage)
errMesssage
- the error message to addpublic TaskResult.Aggregator aggregator()
aggregator
in interface TaskResult
Copyright © 2023. All Rights Reserved.