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 java.util.concurrent.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.
|
java.util.concurrent.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, parseParameters, prepare, processMethodProfiles, run, runSingleTaskpublic abstract RpcTaskResult runRPC() throws java.lang.Exception
java.lang.Exceptionpublic abstract T getParameters()
public java.util.concurrent.ExecutorService getPool()
public void cleanup()
throws java.lang.Exception
Benchmarkcleanup in class Benchmark<RpcTaskResult>java.lang.Exceptionpublic RpcTaskResult runLocal() throws java.lang.Exception
BenchmarkrunLocal in class Benchmark<RpcTaskResult>java.lang.ExceptionCopyright © 2022. All Rights Reserved.