public interface 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.
|
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
|
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
- OptionsOperationRun createErrorInformation(String message, int category, long runtime)
message
- Error messagecategory
- Error categoryruntime
- RuntimeString getType()
String getContentString()
OperationStats getStats()
int getId()
void setId(int id)
id
- IDCopyright © 2015. All rights reserved.