public interface OneTimeTask
executeTask call is made in its own thread (got from the thread pool)
in dependence of registration property ASYNC_EXECUTION.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ASYNC_EXECUTION
The value of the registration property specifies if the
executeTask should be called into
separate thread. |
| Modifier and Type | Method and Description |
|---|---|
void |
executeTask(java.lang.String lastSuccesfulTaskVersion)
Calls the task in order to executes its activities.
|
java.lang.String |
getId()
Returns the id of the Task.
|
java.lang.String |
getVersion()
The version of the task.
|
void |
taskExecuted(java.lang.String lastSuccesfulTaskVersion)
This method is called by the One Time Task service in order to notify one time task that
that the task with this id is already excecuted with version equal or bigger then the version of
this one time task.
|
static final java.lang.String ASYNC_EXECUTION
executeTask should be called into
separate thread. The allowed values are strings "true" and "false" as well as Boolean.TRUE, Boolean.FALSE. If the
registration property miss the value is assumed to be false.java.lang.String getId()
java.lang.String getVersion()
void executeTask(java.lang.String lastSuccesfulTaskVersion)
throws java.lang.Exception
ASYNC_EXECUTION.lastSuccesfulTaskVersion - the version of the last successfully executed on mPRM instance task
with this id. If task with such id has never executed then the lastSuccesfulTaskVersion will be null.java.lang.Exception - when exception occures. If the exception is thrown then the task will remain
in unexecuted state and should be executed in future by this or another host.void taskExecuted(java.lang.String lastSuccesfulTaskVersion)
lastSuccesfulTaskVersion - the version of the last successfully executed on mPRM instance task
with this id.Copyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.