Package alluxio.stress.common
Class AbstractMaxThroughputSummary<T extends GeneralParameters,S extends Summary>
- java.lang.Object
-
- alluxio.stress.common.AbstractMaxThroughputSummary<T,S>
-
- Type Parameters:
T- the stress bench parameterS- the Bench Summary
- All Implemented Interfaces:
Summary,alluxio.util.JsonSerializable
- Direct Known Subclasses:
JobServiceMaxThroughputSummary
public abstract class AbstractMaxThroughputSummary<T extends GeneralParameters,S extends Summary> extends java.lang.Object implements Summary
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.
-
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.longgetEndTimeMs()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
-
-