public class StressWorkerBench extends AbstractStressBench<WorkerBenchTaskResult,WorkerBenchParameters>
Benchmark.MethodStatistics, Benchmark.ProfileInput
mParameters
mBaseParameters
Constructor and Description |
---|
StressWorkerBench()
Creates instance.
|
Modifier and Type | Method and Description |
---|---|
void |
generateTestFilePaths(org.apache.hadoop.fs.Path basePath)
Generates the target file paths in a deterministic manner.
|
String |
getBenchDescription()
Get the description of the bench.
|
static void |
main(String[] args) |
void |
prepare()
Prepares to run the test.
|
WorkerBenchTaskResult |
runLocal()
Runs the test locally, in process.
|
void |
validateParams()
Validates the parameters.
|
run
cleanup, generateJobConfig, mainInternal, parseParameters, processMethodProfiles, runSingleTask
public static void main(String[] args)
args
- command-line argumentspublic String getBenchDescription()
Benchmark
getBenchDescription
in class Benchmark<WorkerBenchTaskResult>
public void prepare() throws Exception
Benchmark
prepare
in class Benchmark<WorkerBenchTaskResult>
Exception
public void generateTestFilePaths(org.apache.hadoop.fs.Path basePath) throws IOException
basePath
- base dir where the files should be preparedIOException
public WorkerBenchTaskResult runLocal() throws Exception
Benchmark
runLocal
in class Benchmark<WorkerBenchTaskResult>
Exception
public void validateParams() throws Exception
AbstractStressBench
validateParams
in class AbstractStressBench<WorkerBenchTaskResult,WorkerBenchParameters>
Exception
Copyright © 2023. All Rights Reserved.