Class RegisterWorkerBench


  • public class RegisterWorkerBench
    extends RpcBench<alluxio.stress.rpc.BlockMasterBenchParameters>
    A benchmarking tool for the RegisterWorker RPC.
    • Constructor Detail

      • RegisterWorkerBench

        public RegisterWorkerBench()
    • Method Detail

      • 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.rpc.RpcTaskResult>
        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.rpc.RpcTaskResult>
        Throws:
        java.lang.Exception
      • main

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

        public alluxio.stress.rpc.RpcTaskResult runRPC()
                                                throws java.lang.Exception
        Description copied from class: RpcBench
        Defines how each thread runs RPCs.
        Specified by:
        runRPC in class RpcBench<alluxio.stress.rpc.BlockMasterBenchParameters>
        Returns:
        the results of RPC runs
        Throws:
        java.lang.Exception
      • getParameters

        public alluxio.stress.rpc.BlockMasterBenchParameters getParameters()
        Description copied from class: RpcBench
        Returns the parameters.
        Specified by:
        getParameters in class RpcBench<alluxio.stress.rpc.BlockMasterBenchParameters>
        Returns:
        the parameters for the benchmark class