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>

  • Type Parameters:
    T - the MaxThroughput bench result summary
    S - the general Bench Summary with common method
    P - the stress bench parameter
    Q - 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.
    • 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
    • Constructor Detail

      • AbstractMaxThroughput

        public AbstractMaxThroughput()
    • 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.Exception
        Runs the test and returns the string output.
        Overrides:
        run in class Benchmark<T extends alluxio.stress.common.AbstractMaxThroughputSummary<P,​S>>
        Parameters:
        args - the command-line args
        Returns:
        the string result output
        Throws:
        java.lang.Exception
      • updateArgValue

        protected void updateArgValue​(java.util.List<java.lang.String> args,
                                      java.lang.String argName,
                                      java.lang.String argValue)
      • runLocal

        public T runLocal()
        Description copied from class: Benchmark
        Runs the test locally, in process.
        Specified by:
        runLocal in class Benchmark<T extends alluxio.stress.common.AbstractMaxThroughputSummary<P,​S>>
        Returns:
        the task result