Class GetPinnedFileIdsBench


  • public class GetPinnedFileIdsBench
    extends RpcBench<alluxio.stress.rpc.GetPinnedFileIdsParameters>
    A benchmarking tool for the GetPinnedFileIds RPC.
    • Constructor Detail

      • GetPinnedFileIdsBench

        public GetPinnedFileIdsBench()
    • 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
      • cleanup

        public void cleanup()
                     throws java.lang.Exception
        Description copied from class: Benchmark
        Perform post-run cleanups.
        Overrides:
        cleanup in class RpcBench<alluxio.stress.rpc.GetPinnedFileIdsParameters>
        Throws:
        java.lang.Exception
      • 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.GetPinnedFileIdsParameters>
        Returns:
        the results of RPC runs
        Throws:
        java.lang.Exception
      • getParameters

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

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