public class RpcTaskResult extends Object implements TaskResult
Modifier and Type | Class and Description |
---|---|
static class |
RpcTaskResult.Aggregator
An aggregator that merges multiple
RpcTaskResult . |
static class |
RpcTaskResult.Point
Each point stands for one successful RPC.
|
CLASS_NAME_FIELD
Constructor and Description |
---|
RpcTaskResult()
Constructor.
|
RpcTaskResult(BaseParameters baseParameters,
RpcBenchParameters rpcBenchParameters)
Constructor with only parameters.
|
RpcTaskResult(RpcTaskResult source)
A copy constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addError(String errorMsg) |
void |
addPoint(RpcTaskResult.Point p) |
RpcTaskResult.Aggregator |
aggregator() |
BaseParameters |
getBaseParameters() |
List<String> |
getErrors() |
RpcBenchParameters |
getParameters() |
List<RpcTaskResult.Point> |
getPoints() |
void |
merge(RpcTaskResult r) |
void |
setBaseParameters(BaseParameters baseParameters) |
void |
setErrors(List<String> errors) |
void |
setParameters(RpcBenchParameters parameters) |
void |
setPoints(List<RpcTaskResult.Point> points) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
fromJson, fromJson, getClassName, setClassName, toJson
public RpcTaskResult()
public RpcTaskResult(BaseParameters baseParameters, RpcBenchParameters rpcBenchParameters)
baseParameters
- base parametersrpcBenchParameters
- test specific parameterspublic RpcTaskResult(RpcTaskResult source)
source
- the result to copy from@Nullable public BaseParameters getBaseParameters()
BaseParameters
public void setBaseParameters(BaseParameters baseParameters)
baseParameters
- the BaseParameters
to use@Nullable public RpcBenchParameters getParameters()
RpcBenchParameters
public void setParameters(RpcBenchParameters parameters)
parameters
- the RpcBenchParameters
to usepublic void addError(String errorMsg)
errorMsg
- an error msg to addpublic void addPoint(RpcTaskResult.Point p)
p
- the data point to add to the resultspublic List<RpcTaskResult.Point> getPoints()
public void setPoints(List<RpcTaskResult.Point> points)
points
- data pointspublic RpcTaskResult.Aggregator aggregator()
aggregator
in interface TaskResult
public void merge(RpcTaskResult r)
r
- another result to merge into this oneCopyright © 2023. All Rights Reserved.