Class RpcBench<T extends alluxio.stress.rpc.RpcBenchParameters>

    • Field Detail

      • mPool

        protected java.util.concurrent.ExecutorService mPool
    • Constructor Detail

      • RpcBench

        public RpcBench()
    • Method Detail

      • runRPC

        public abstract alluxio.stress.rpc.RpcTaskResult runRPC()
                                                         throws java.lang.Exception
        Defines how each thread runs RPCs.
        Returns:
        the results of RPC runs
        Throws:
        java.lang.Exception
      • getParameters

        public abstract T getParameters()
        Returns the parameters.
        Returns:
        the parameters for the benchmark class
      • getPool

        public java.util.concurrent.ExecutorService getPool()
        If the thread pool is not yet initialized, creates the pool.
        Returns:
        the thread pool
      • cleanup

        public void cleanup()
                     throws java.lang.Exception
        Description copied from class: Benchmark
        Perform post-run cleanups.
        Overrides:
        cleanup in class Benchmark<alluxio.stress.rpc.RpcTaskResult>
        Throws:
        java.lang.Exception
      • runLocal

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