public class InMemoryFixedUpdateOperation extends AbstractOperation implements UpdateOperation
| Constructor and Description |
|---|
InMemoryFixedUpdateOperation(String name,
String updateString)
Creates a new update 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.
|
UpdateRequest |
getUpdate()
Gets the actual update
|
String |
getUpdateString()
Gets the update string used to create this update
|
getId, getName, getStats, setIdpublic <T extends Options> boolean canRun(Runner<T> runner, T options)
Operationpublic <T extends Options> OperationCallable<T> createCallable(Runner<T> runner, T options)
OperationcreateCallable in interface Operationrunner - Runneroptions - Optionspublic OperationRun createErrorInformation(String message, int category, long runtime)
OperationcreateErrorInformation in interface Operationmessage - Error messagecategory - Error categoryruntime - Runtimepublic String getType()
Operationpublic String getContentString()
OperationgetContentString in interface Operationpublic UpdateRequest getUpdate()
UpdateOperationgetUpdate in interface UpdateOperationpublic String getUpdateString()
UpdateOperationgetUpdateString in interface UpdateOperationCopyright © 2016. All rights reserved.