public class MixOperation extends AbstractOperation
| Constructor and Description |
|---|
MixOperation(String name,
OperationMix mix)
Creates a new mix operation
|
MixOperation(String name,
OperationMix mix,
boolean randomOrder)
Creates a new mix operation
|
| Modifier and Type | Method and Description |
|---|---|
<T extends Options> |
canRun(Runner<T> runner,
T options)
Report whether the operation can run based on the available options
|
<T extends Options> |
createCallable(Runner<T> runner,
T options)
Creates the callable for running the operation in a background thread
|
OperationRun |
createErrorInformation(String message,
int category,
long runtime)
Creates run information for an error
|
String |
getContentString()
Gets a string that shows the content of the operation e.g.
|
String |
getType()
Gets a descriptive type string for the operation e.g.
|
getId, getName, getStats, setIdpublic MixOperation(String name, OperationMix mix)
name - Namemix - Mixpublic MixOperation(String name, OperationMix mix, boolean randomOrder)
name - Namemix - MixrandomOrder - Whether to randomize the order of operationspublic <T extends Options> boolean canRun(Runner<T> runner, T options)
Operationrunner - Runneroptions - Optionspublic String getType()
Operationpublic String getContentString()
Operationpublic <T extends Options> OperationCallable<T> createCallable(Runner<T> runner, T options)
Operationrunner - Runneroptions - Optionspublic OperationRun createErrorInformation(String message, int category, long runtime)
Operationmessage - Error messagecategory - Error categoryruntime - RuntimeCopyright © 2016. All rights reserved.