public interface OneTimeTaskServiceDatabase
| Modifier and Type | Method and Description |
|---|---|
TaskInfo |
getTask(java.lang.String id)
Returns the task with the bigest version that has been executed.
|
java.lang.String |
obtainTaskControl(java.lang.String id,
java.lang.String version,
java.lang.String localhost)
Try to create record (id, version, localhost, RUNNING) (if not exists)
Returns the FINISHED task with such id (if has) or null (if has not).
|
void |
taskError(java.lang.String id,
java.lang.String version,
java.lang.String host)
Removes row (id, version, localhost, RUNNING) (if exists)
|
void |
taskFinished(java.lang.String id,
java.lang.String version,
java.lang.String localHost)
if (has FINISHED with >= version) -> do nothing
else ->
removes FINISHED record with (id and < version).
|
TaskInfo getTask(java.lang.String id) throws DatabaseException
id - the task id.DatabaseException - if an exception occurs.java.lang.String obtainTaskControl(java.lang.String id,
java.lang.String version,
java.lang.String localhost)
throws DatabaseException
id - the task id.version - the version.localhost - the host.DatabaseException - if an exception occurs.void taskFinished(java.lang.String id,
java.lang.String version,
java.lang.String localHost)
throws DatabaseException
id - the id.version - the version.localHost - the host.DatabaseException - if an exception occurs.void taskError(java.lang.String id,
java.lang.String version,
java.lang.String host)
throws DatabaseException
id - task id.version - task version.host - host.DatabaseException - if an exception occurs.Copyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.