T
- the child RpcBenchParameters
typepublic abstract class RpcBench<T extends RpcBenchParameters> extends Benchmark<RpcTaskResult>
Benchmark.MethodStatistics, Benchmark.ProfileInput
Modifier and Type | Field and Description |
---|---|
protected ExecutorService |
mPool |
mBaseParameters
Constructor and Description |
---|
RpcBench() |
Modifier and Type | Method and Description |
---|---|
void |
cleanup()
Perform post-run cleanups.
|
abstract T |
getParameters()
Returns the parameters.
|
ExecutorService |
getPool()
If the thread pool is not yet initialized, creates the pool.
|
RpcTaskResult |
runLocal()
Runs the test locally, in process.
|
abstract RpcTaskResult |
runRPC()
Defines how each thread runs RPCs.
|
generateJobConfig, getBenchDescription, mainInternal, prepare, processMethodProfiles, run
protected ExecutorService mPool
public abstract RpcTaskResult runRPC() throws Exception
Exception
public abstract T getParameters()
public ExecutorService getPool()
public void cleanup() throws Exception
Benchmark
cleanup
in class Benchmark<RpcTaskResult>
Exception
public RpcTaskResult runLocal() throws Exception
Benchmark
runLocal
in class Benchmark<RpcTaskResult>
Exception
Copyright © 2023. All Rights Reserved.