public final class WorkerBenchTaskResult extends java.lang.Object implements TaskResult
CLASS_NAME_FIELD| Constructor and Description |
|---|
WorkerBenchTaskResult()
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addErrorMessage(java.lang.String errMesssage) |
TaskResult.Aggregator |
aggregator() |
BaseParameters |
getBaseParameters() |
long |
getEndMs() |
java.util.List<java.lang.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(java.util.List<java.lang.String> errors) |
void |
setIOBytes(long ioBytes) |
void |
setParameters(WorkerBenchParameters parameters) |
void |
setRecordStartMs(long recordStartMs) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfromJson, fromJson, getClassName, setClassName, toJsonpublic void merge(WorkerBenchTaskResult result) throws java.lang.Exception
result - the task result to mergejava.lang.Exceptionpublic 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 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 TaskResult.Aggregator aggregator()
aggregator in interface TaskResultCopyright © 2022. All Rights Reserved.