Interface DataflowTaskExecutionMetadataDao
- All Known Implementing Classes:
JdbcDataflowTaskExecutionMetadataDao
public interface DataflowTaskExecutionMetadataDao
Data access object used for manipulating task manifests
- Since:
- 2.3
- Author:
- Michael Minella, Corneil du Plessis
-
Method Summary
Modifier and TypeMethodDescriptionint
deleteManifestsByTaskExecutionIds
(Set<Long> taskExecutionIds) Deletes the task manifest records associated with the collection of task execution ids provided.findManifestById
(Long id) Returns the manifest for the given execution id.findManifestByIds
(Set<Long> ids) Returns a collection of manifests mapped by id for the supplied ids.getLatestManifest
(String taskName) Returns the manifest for the most recently launched instance of the task name requested.void
save
(org.springframework.cloud.task.repository.TaskExecution taskExecution, TaskManifest manifest) Saves aTaskManifest
related to the suppliedTaskExecution
-
Method Details
-
save
void save(org.springframework.cloud.task.repository.TaskExecution taskExecution, TaskManifest manifest) Saves aTaskManifest
related to the suppliedTaskExecution
- Parameters:
taskExecution
- execution this manifest is associated withmanifest
- manifest
-
getLatestManifest
Returns the manifest for the most recently launched instance of the task name requested.- Parameters:
taskName
- name of task defintion- Returns:
TaskManifest
-
findManifestById
Returns the manifest for the given execution id.- Parameters:
id
- execution id- Returns:
TaskManifest
-
findManifestByIds
Returns a collection of manifests mapped by id for the supplied ids.- Parameters:
ids
- list of task execution ids.- Returns:
- map of manifests with id as key.
-
deleteManifestsByTaskExecutionIds
Deletes the task manifest records associated with the collection of task execution ids provided.- Parameters:
taskExecutionIds
- collection of ids to delete the manifests for- Returns:
- number of manifests deleted
-