public class CompactionTaskResult extends Object implements TaskResult
Modifier and Type | Class and Description |
---|---|
static class |
CompactionTaskResult.CompactionSummary
Summary of the benchmark results.
|
CLASS_NAME_FIELD
Constructor and Description |
---|
CompactionTaskResult()
Creates an empty result.
|
CompactionTaskResult(CompactionTaskResult from)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addError(String errorMsg) |
alluxio.stress.client.CompactionTaskResult.Aggregator |
aggregator() |
BaseParameters |
getBaseParameters() |
List<String> |
getErrors() |
CompactionParameters |
getParameters() |
CompactionTaskResultStatistics |
getStatistics() |
void |
incrementNumSuccess()
Increase number of successes by 1.
|
void |
merge(CompactionTaskResult toMerge)
Merges a result into this one.
|
void |
setBaseParameters(BaseParameters baseParameters) |
void |
setErrors(List<String> errors) |
void |
setParameters(CompactionParameters parameters) |
void |
setStatistics(CompactionTaskResultStatistics statistics) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
fromJson, fromJson, getClassName, setClassName, toJson
public CompactionTaskResult()
public CompactionTaskResult(CompactionTaskResult from)
from
- instance to copy from@Nullable public BaseParameters getBaseParameters()
getBaseParameters
in interface TaskResult
public void setBaseParameters(BaseParameters baseParameters)
baseParameters
- the BaseParameters
to use@Nullable public CompactionParameters getParameters()
CompactionParameters
public void setParameters(CompactionParameters parameters)
parameters
- the CompactionParameters
to usepublic void addError(String errorMsg)
errorMsg
- an error msg to addpublic List<String> getErrors()
getErrors
in interface TaskResult
public void merge(CompactionTaskResult toMerge) throws Exception
toMerge
- the result to mergeException
public void incrementNumSuccess()
public CompactionTaskResultStatistics getStatistics()
public void setStatistics(CompactionTaskResultStatistics statistics)
statistics
- the result statisticspublic alluxio.stress.client.CompactionTaskResult.Aggregator aggregator()
aggregator
in interface TaskResult
Copyright © 2023. All Rights Reserved.