Package alluxio.stress.common
Class AbstractMaxThroughputSummary<T extends Parameters,S extends GeneralBenchSummary>
- java.lang.Object
-
- alluxio.stress.common.AbstractMaxThroughputSummary<T,S>
-
- Type Parameters:
T- the stress bench parameterS- the Bench Summary
- All Implemented Interfaces:
Summary,TaskResult,alluxio.util.JsonSerializable
- Direct Known Subclasses:
JobServiceMaxThroughputSummary,MasterMaxThroughputSummary
public abstract class AbstractMaxThroughputSummary<T extends Parameters,S extends GeneralBenchSummary> extends java.lang.Object implements Summary, TaskResult
abstract class for result of MaxThroughput stressBench.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAbstractMaxThroughputSummary.GraphGeneratorThe graph generator for this summary.-
Nested classes/interfaces inherited from interface alluxio.stress.TaskResult
TaskResult.Aggregator<T extends TaskResult>
-
-
Constructor Summary
Constructors Constructor Description AbstractMaxThroughputSummary()Creates an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFailedRun(long targetThroughput, S summary)Adds a failing run to the summary, for a target throughput.voidaddPassedRun(long targetThroughput, S summary)Adds a passing run to the summary, for a target throughput.TaskResult.Aggregatoraggregator()BaseParametersgetBaseParameters()longgetEndTimeMs()java.util.List<java.lang.String>getErrors()java.util.Map<java.lang.Long,S>getFailedRuns()floatgetMaxThroughput()TgetParameters()java.util.Map<java.lang.Long,S>getPassedRuns()GraphGeneratorgraphGenerator()voidsetEndTimeMs(long endTimeMs)voidsetFailedRuns(java.util.Map<java.lang.Long,S> failedRuns)voidsetMaxThroughput(float maxThroughput)voidsetParameters(T parameters)voidsetPassedRuns(java.util.Map<java.lang.Long,S> passedRuns)
-
-
-
Method Detail
-
getMaxThroughput
public float getMaxThroughput()
- Returns:
- the max throughput
-
setMaxThroughput
public void setMaxThroughput(float maxThroughput)
- Parameters:
maxThroughput- the max throughput
-
getEndTimeMs
public long getEndTimeMs()
- Returns:
- the end time (in ms)
-
setEndTimeMs
public void setEndTimeMs(long endTimeMs)
- Parameters:
endTimeMs- the end time (in ms)
-
graphGenerator
public GraphGenerator graphGenerator()
- Specified by:
graphGeneratorin interfaceSummary- Returns:
- the graph generator for this type of summary
-
getParameters
public T getParameters()
- Returns:
- the parameters
-
setParameters
public void setParameters(T parameters)
- Parameters:
parameters- the parameters
-
addPassedRun
public void addPassedRun(long targetThroughput, S summary)Adds a passing run to the summary, for a target throughput.- Parameters:
targetThroughput- the target throughputsummary- the summary
-
getPassedRuns
public java.util.Map<java.lang.Long,S> getPassedRuns()
- Returns:
- the Map(target throughput -> summary) of passed runs
-
setPassedRuns
public void setPassedRuns(java.util.Map<java.lang.Long,S> passedRuns)
- Parameters:
passedRuns- the Map(target throughput -> summary) of passed runs
-
addFailedRun
public void addFailedRun(long targetThroughput, S summary)Adds a failing run to the summary, for a target throughput.- Parameters:
targetThroughput- the target throughputsummary- the summary
-
getFailedRuns
public java.util.Map<java.lang.Long,S> getFailedRuns()
- Returns:
- the Map(target throughput -> summary) of failed runs
-
setFailedRuns
public void setFailedRuns(java.util.Map<java.lang.Long,S> failedRuns)
- Parameters:
failedRuns- the Map(target throughput -> summary) of failed runs
-
aggregator
public TaskResult.Aggregator aggregator()
- Specified by:
aggregatorin interfaceTaskResult- Returns:
- the aggregator that can produce a summary
-
getErrors
public java.util.List<java.lang.String> getErrors()
- Specified by:
getErrorsin interfaceTaskResult- Returns:
- the list of errors in the result
-
getBaseParameters
public BaseParameters getBaseParameters()
- Specified by:
getBaseParametersin interfaceTaskResult- Returns:
- the base parameters of the result
-
-