|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Operation
Represents a single operation within a testing run
Method Summary | ||
---|---|---|
|
canRun(Runner<T> runner,
T options)
Report whether the operation can run based on the available 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. |
|
int |
getId()
Gets the ID used to identify the operation within an operation mix (if known) |
|
String |
getName()
Gets the name of the operation |
|
OperationStats |
getStats()
Gets statistics for the operation |
|
String |
getType()
Gets a descriptive type string for the operation e.g. |
|
void |
setId(int id)
Sets the ID used to identify the operation within an operation mix |
Method Detail |
---|
String getName()
In the 1.x releases this was almost always the filename but in the 2.x code base this is often a friendly user defined name
<T extends Options> boolean canRun(Runner<T> runner, T options)
runner
- Runneroptions
- Options
<T extends Options> OperationCallable<T> createCallable(Runner<T> runner, T options)
runner
- Runneroptions
- Options
OperationRun createErrorInformation(String message, int category, long runtime)
message
- Error messagecategory
- Error categoryruntime
- Runtime
String getType()
String getContentString()
OperationStats getStats()
int getId()
void setId(int id)
id
- ID
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |