Class StressClientIOBench


  • public class StressClientIOBench
    extends AbstractStressBench<alluxio.stress.client.ClientIOTaskResult,​alluxio.stress.client.ClientIOParameters>
    Client IO stress test.
    • Constructor Detail

      • StressClientIOBench

        public StressClientIOBench()
        Creates instance.
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
        Parameters:
        args - command-line arguments
      • getBenchDescription

        public java.lang.String getBenchDescription()
        Description copied from class: Benchmark
        Get the description of the bench.
        Specified by:
        getBenchDescription in class Benchmark<alluxio.stress.client.ClientIOTaskResult>
        Returns:
        string of the bench description
      • prepare

        public void prepare()
                     throws java.lang.Exception
        Description copied from class: Benchmark
        Prepares to run the test.
        Specified by:
        prepare in class Benchmark<alluxio.stress.client.ClientIOTaskResult>
        Throws:
        java.lang.Exception
      • runLocal

        public alluxio.stress.client.ClientIOTaskResult runLocal()
                                                          throws java.lang.Exception
        Description copied from class: Benchmark
        Runs the test locally, in process.
        Specified by:
        runLocal in class Benchmark<alluxio.stress.client.ClientIOTaskResult>
        Returns:
        the task result
        Throws:
        java.lang.Exception
      • addAdditionalResult

        public java.util.Map<java.lang.String,​alluxio.stress.common.SummaryStatistics> addAdditionalResult​(long startMs,
                                                                                                                 long endMs)
                                                                                                          throws java.io.IOException
        Read the log file from java agent log file.
        Parameters:
        startMs - start time for profiling
        endMs - end time for profiling
        Returns:
        TimeToFirstByteStatistics
        Throws:
        java.io.IOException - exception
      • validateParams

        public void validateParams()
                            throws java.lang.Exception
        Description copied from class: AbstractStressBench
        Validates the parameters.
        Specified by:
        validateParams in class AbstractStressBench<alluxio.stress.client.ClientIOTaskResult,​alluxio.stress.client.ClientIOParameters>
        Throws:
        java.lang.Exception