Package alluxio.stress.cli.suite
Class AbstractMaxThroughput<Q extends alluxio.stress.TaskResult,T extends alluxio.stress.common.AbstractMaxThroughputSummary<P,S>,S extends alluxio.stress.common.GeneralBenchSummary<Q>,P extends alluxio.stress.Parameters>
- java.lang.Object
-
- alluxio.stress.cli.Benchmark<T>
-
- alluxio.stress.cli.suite.AbstractMaxThroughput<Q,T,S,P>
-
- Type Parameters:
T- the MaxThroughput bench result summaryS- the general Bench Summary with common methodP- the stress bench parameterQ- the single task result
- Direct Known Subclasses:
JobServiceMaxThroughput,MasterMaxThroughput
public abstract class AbstractMaxThroughput<Q extends alluxio.stress.TaskResult,T extends alluxio.stress.common.AbstractMaxThroughputSummary<P,S>,S extends alluxio.stress.common.GeneralBenchSummary<Q>,P extends alluxio.stress.Parameters> extends Benchmark<T>
abstract class for MaxThroughput benchmark.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class alluxio.stress.cli.Benchmark
Benchmark.MethodStatistics, Benchmark.ProfileInput
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.LoggerLOGprotected intmInitialThroughputprotected TmMaxThroughputResultprotected PmParameters-
Fields inherited from class alluxio.stress.cli.Benchmark
mBaseParameters
-
-
Constructor Summary
Constructors Constructor Description AbstractMaxThroughput()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidinitParameters(java.util.List<java.lang.String> baseArgs)Construct parameters with user command-line args.java.lang.Stringrun(java.lang.String[] args)Runs the test and returns the string output.TrunLocal()Runs the test locally, in process.protected abstract SrunSingleTest(java.util.List<java.lang.String> args, int targetThroughput)Unit test for max throughput.protected voidupdateArgValue(java.util.List<java.lang.String> args, java.lang.String argName, java.lang.String argValue)-
Methods inherited from class alluxio.stress.cli.Benchmark
cleanup, generateJobConfig, getBenchDescription, mainInternal, parseParameters, prepare, processMethodProfiles, runSingleTask
-
-
-
-
Field Detail
-
LOG
protected static final org.slf4j.Logger LOG
-
mParameters
protected P extends alluxio.stress.Parameters mParameters
-
mMaxThroughputResult
protected T extends alluxio.stress.common.AbstractMaxThroughputSummary<P,S> mMaxThroughputResult
-
mInitialThroughput
protected int mInitialThroughput
-
-
Method Detail
-
initParameters
public abstract void initParameters(java.util.List<java.lang.String> baseArgs)
Construct parameters with user command-line args.- Parameters:
baseArgs- initial args passed by the user
-
runSingleTest
protected abstract S runSingleTest(java.util.List<java.lang.String> args, int targetThroughput) throws java.lang.Exception
Unit test for max throughput.- Returns:
- the results
- Throws:
java.lang.Exception
-
run
public java.lang.String run(java.lang.String[] args) throws java.lang.ExceptionRuns the test and returns the string output.
-
updateArgValue
protected void updateArgValue(java.util.List<java.lang.String> args, java.lang.String argName, java.lang.String argValue)
-
-