Package alluxio.stress.cli.client
Class CompactionBench
- java.lang.Object
-
- alluxio.stress.cli.Benchmark<alluxio.stress.client.CompactionTaskResult>
-
- alluxio.stress.cli.client.CompactionBench
-
public class CompactionBench extends Benchmark<alluxio.stress.client.CompactionTaskResult>
Benchmark that simulates a workload that compacts many small files into a bigger file.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class alluxio.stress.cli.Benchmark
Benchmark.MethodStatistics, Benchmark.ProfileInput
-
-
Field Summary
Fields Modifier and Type Field Description protected alluxio.client.file.FileSystem[]mCachedFsprotected alluxio.stress.client.CompactionParametersmParametersprotected java.util.concurrent.ExecutorServicemPool-
Fields inherited from class alluxio.stress.cli.Benchmark
mBaseParameters
-
-
Constructor Summary
Constructors Constructor Description CompactionBench()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanup()Perform post-run cleanups.java.lang.StringgetBenchDescription()Get the description of the bench.java.util.concurrent.ExecutorServicegetPool()If the thread pool is not yet initialized, creates the pool.static voidmain(java.lang.String[] args)voidprepare()Prepares to run the test.alluxio.stress.client.CompactionTaskResultrunLocal()Runs the test locally, in process.-
Methods inherited from class alluxio.stress.cli.Benchmark
generateJobConfig, mainInternal, parseParameters, processMethodProfiles, run, runSingleTask
-
-
-
-
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:BenchmarkGet the description of the bench.- Specified by:
getBenchDescriptionin classBenchmark<alluxio.stress.client.CompactionTaskResult>- Returns:
- string of the bench description
-
runLocal
public alluxio.stress.client.CompactionTaskResult runLocal() throws java.lang.ExceptionDescription copied from class:BenchmarkRuns the test locally, in process.
-
prepare
public void prepare() throws java.lang.ExceptionDescription copied from class:BenchmarkPrepares to run the test.
-
cleanup
public void cleanup() throws java.lang.ExceptionDescription copied from class:BenchmarkPerform post-run cleanups.
-
getPool
public java.util.concurrent.ExecutorService getPool()
If the thread pool is not yet initialized, creates the pool.- Returns:
- the thread pool
-
-