public abstract class AbstractOperationMixRunner extends Object implements OperationMixRunner
Constructor and Description |
---|
AbstractOperationMixRunner() |
Modifier and Type | Method and Description |
---|---|
protected abstract <T extends Options> |
getOperationOrder(T options,
OperationMix mix)
Gets the order in which the runner should run the operations
|
protected <T extends Options> |
reportOperationOrder(T options)
Whether the runner should report the order of operations as a progress
message
|
<T extends Options> |
run(Runner<T> runner,
T options,
OperationMix mix)
Performs a operation mix run returning the statistics as a
OperationMixRun |
protected <T extends Options> |
runOp(Runner<T> runner,
T options,
Operation op)
Runs an operation based on the configured
OperationRunner using
the DefaultOperationRunner if none is configured |
protected <T extends Options> OperationRun runOp(Runner<T> runner, T options, Operation op)
OperationRunner
using
the DefaultOperationRunner
if none is configuredoptions
- Optionsop
- Operation to runprotected abstract <T extends Options> List<Integer> getOperationOrder(T options, OperationMix mix)
options
- Optionsmix
- Mix containing the operations to be runprotected <T extends Options> boolean reportOperationOrder(T options)
The default implementation returns true
so operation order is
always reported
public <T extends Options> OperationMixRun run(Runner<T> runner, T options, OperationMix mix)
OperationMixRunner
OperationMixRun
Implementations are also expected to record the information within the
OperationMixStats
object of the given OperationMix
instance prior to returning the statistics.
run
in interface OperationMixRunner
runner
- Runneroptions
- Optionsmix
- Operation mix to be runCopyright © 2015. All rights reserved.