public class TaskDAO extends SQLDAO
AbstractTaskDetails
),
but the class is not guaranteed to function with extended capabilities provided by inherited classes. Use the service specific implementation when needed.Constructor and Description |
---|
TaskDAO() |
Modifier and Type | Method and Description |
---|---|
BackendStatus |
getBackendStatus(java.lang.Integer backendId,
java.lang.Long taskId) |
BackendStatusList |
getBackendStatus(java.lang.Long taskId,
AsyncTask.TaskStatus taskStatus) |
AbstractTaskDetails |
getTask(java.lang.Integer backendId,
DataGroups dataGroups,
Limits limits,
java.lang.Long taskId) |
java.lang.Long |
insertTask(AbstractTaskDetails details)
This will create the basic task and insert metadata and back-ends
|
void |
updateTaskStatus(BackendStatusList status,
java.lang.Long taskId)
Update the given status list for the given task.
|
void |
updateTaskStatus(BackendStatus status,
java.lang.Long taskId)
Update the given status for the given task.
|
getTransactionTemplate, setDataSource, setTnxManager
public TaskDAO()
public BackendStatusList getBackendStatus(java.lang.Long taskId, AsyncTask.TaskStatus taskStatus)
taskId
- taskStatus
- optional status filter, if null all back-ends matching the given id will be returnedpublic void updateTaskStatus(BackendStatusList status, java.lang.Long taskId)
status
- taskId
- public BackendStatus getBackendStatus(java.lang.Integer backendId, java.lang.Long taskId)
backendId
- taskId
- public AbstractTaskDetails getTask(java.lang.Integer backendId, DataGroups dataGroups, Limits limits, java.lang.Long taskId) throws java.lang.IllegalArgumentException
backendId
- dataGroups
- optional dataGroups filter, if not given, default backend-specific datagroups will be usedlimits
- optional limits filtertaskId
- java.lang.IllegalArgumentException
- on bad valuespublic void updateTaskStatus(BackendStatus status, java.lang.Long taskId)
status
- taskId
- public java.lang.Long insertTask(AbstractTaskDetails details) throws java.lang.IllegalArgumentException
details
- java.lang.IllegalArgumentException
Copyright © 2015 Tampere University of Technology, Pori Department.