Package alluxio.stress.fuse
Class FuseIOTaskResult
- java.lang.Object
-
- alluxio.stress.fuse.FuseIOTaskResult
-
- All Implemented Interfaces:
TaskResult,alluxio.util.JsonSerializable
public final class FuseIOTaskResult extends java.lang.Object implements TaskResult
The task result for the Fuse IO stress tests.
-
-
Constructor Summary
Constructors Constructor Description FuseIOTaskResult()Creates an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddErrorMessage(java.lang.String errMessage)TaskResult.Aggregatoraggregator()BaseParametersgetBaseParameters()longgetDurationMs()longgetEndMs()java.util.List<java.lang.String>getErrors()longgetIOBytes()floatgetIOMBps()FuseIOParametersgetParameters()longgetRecordStartMs()voidincrementIOBytes(long ioBytes)Increments the bytes of IO an amount.voidmerge(FuseIOTaskResult result)Merges this thread result into the Fuse IO task result.voidsetBaseParameters(BaseParameters baseParameters)voidsetDurationMs(long durationMs)voidsetEndMs(long endMs)voidsetErrors(java.util.List<java.lang.String> errors)voidsetIOBytes(long ioBytes)voidsetIOMBps(float ioMBps)voidsetParameters(FuseIOParameters parameters)voidsetRecordStartMs(long recordStartMs)
-
-
-
Method Detail
-
aggregator
public TaskResult.Aggregator aggregator()
- Specified by:
aggregatorin interfaceTaskResult- Returns:
- the aggregator that can produce a summary
-
merge
public void merge(FuseIOTaskResult result)
Merges this thread result into the Fuse IO task result.- Parameters:
result- the result to merge
-
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 FuseIOParameters getParameters()
- Returns:
- the Fuse IO Stress Bench parameters
-
setParameters
public void setParameters(FuseIOParameters parameters)
- Parameters:
parameters- the Fuse IO Stress Bench parameters
-
getDurationMs
public long getDurationMs()
- Returns:
- the duration (in ms)
-
setDurationMs
public void setDurationMs(long durationMs)
- Parameters:
durationMs- the duration (in ms)
-
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
-
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 errMessage)
- Parameters:
errMessage- the error message to add
-
getIOMBps
public float getIOMBps()
- Returns:
- the throughput (MB/s)
-
setIOMBps
public void setIOMBps(float ioMBps)
- Parameters:
ioMBps- the throughput (MB / s)
-
-