Class StressMasterBenchBase<T extends alluxio.stress.master.MasterBenchTaskResultBase<P>,​P extends alluxio.stress.master.MasterBenchBaseParameters>

  • Type Parameters:
    T - the type of task result
    P - the type of task parameter
    Direct Known Subclasses:
    MultiOperationStressMasterBench, StressMasterBench

    public abstract class StressMasterBenchBase<T extends alluxio.stress.master.MasterBenchTaskResultBase<P>,​P extends alluxio.stress.master.MasterBenchBaseParameters>
    extends AbstractStressBench<T,​P>
    The base class for master stress bench tests.
    • Field Detail

      • mFiledata

        protected byte[] mFiledata
      • mCachedFs

        protected org.apache.hadoop.fs.FileSystem[] mCachedFs
        Cached FS instances.
      • mCachedNativeFs

        protected alluxio.client.file.FileSystem[] mCachedNativeFs
        In case the Alluxio Native API is used, use the following instead.
      • mPathNodeIds

        protected int[] mPathNodeIds
      • mTreeLevelNodeCount

        protected int[] mTreeLevelNodeCount
      • mTreeTotalNodeCount

        protected int mTreeTotalNodeCount
    • Constructor Detail

      • StressMasterBenchBase

        protected StressMasterBenchBase​(P parameters)
        Creates instance.
    • Method Detail

      • getContext

        protected abstract StressMasterBenchBase.BenchContext getContext()
                                                                  throws java.io.IOException,
                                                                         alluxio.exception.AlluxioException
        Throws:
        java.io.IOException
        alluxio.exception.AlluxioException
      • deletePaths

        protected void deletePaths​(org.apache.hadoop.fs.FileSystem fs,
                                   org.apache.hadoop.fs.Path basePath)
                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • runLocal

        public T runLocal()
                   throws java.lang.Exception
        Description copied from class: Benchmark
        Runs the test locally, in process.
        Specified by:
        runLocal in class Benchmark<T extends alluxio.stress.master.MasterBenchTaskResultBase<P>>
        Returns:
        the task result
        Throws:
        java.lang.Exception
      • applyNativeOperation

        protected void applyNativeOperation​(alluxio.client.file.FileSystem fs,
                                            alluxio.stress.master.Operation operation,
                                            long counter,
                                            org.apache.hadoop.fs.Path basePath,
                                            org.apache.hadoop.fs.Path fixedBasePath,
                                            int fixedCount)
                                     throws java.io.IOException,
                                            alluxio.exception.AlluxioException
        Throws:
        java.io.IOException
        alluxio.exception.AlluxioException
      • extractHostName

        protected java.lang.String extractHostName​(java.lang.String mId)