Class JdbcDataflowTaskExecutionMetadataDao
java.lang.Object
org.springframework.cloud.dataflow.server.repository.JdbcDataflowTaskExecutionMetadataDao
- All Implemented Interfaces:
DataflowTaskExecutionMetadataDao
public class JdbcDataflowTaskExecutionMetadataDao
extends Object
implements DataflowTaskExecutionMetadataDao
JDBC implementation for the
DataflowTaskExecutionMetadataDao- Since:
- 2.3
- Author:
- Michael Minella, Corneil du Plessis
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionJdbcDataflowTaskExecutionMetadataDao(DataSource dataSource, DataFieldMaxValueIncrementer incrementer, String prefix) -
Method Summary
Modifier and TypeMethodDescriptionintdeleteManifestsByTaskExecutionIds(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.voidsave(org.springframework.cloud.task.repository.TaskExecution taskExecution, TaskManifest manifest) Saves aTaskManifestrelated to the suppliedTaskExecution
-
Constructor Details
-
JdbcDataflowTaskExecutionMetadataDao
public JdbcDataflowTaskExecutionMetadataDao(DataSource dataSource, DataFieldMaxValueIncrementer incrementer, String prefix)
-
-
Method Details
-
save
public void save(org.springframework.cloud.task.repository.TaskExecution taskExecution, TaskManifest manifest) Description copied from interface:DataflowTaskExecutionMetadataDaoSaves aTaskManifestrelated to the suppliedTaskExecution- Specified by:
savein interfaceDataflowTaskExecutionMetadataDao- Parameters:
taskExecution- execution this manifest is associated withmanifest- manifest
-
getLatestManifest
Description copied from interface:DataflowTaskExecutionMetadataDaoReturns the manifest for the most recently launched instance of the task name requested.- Specified by:
getLatestManifestin interfaceDataflowTaskExecutionMetadataDao- Parameters:
taskName- name of task defintion- Returns:
TaskManifest
-
findManifestById
Description copied from interface:DataflowTaskExecutionMetadataDaoReturns the manifest for the given execution id.- Specified by:
findManifestByIdin interfaceDataflowTaskExecutionMetadataDao- Parameters:
id- execution id- Returns:
TaskManifest
-
findManifestByIds
Description copied from interface:DataflowTaskExecutionMetadataDaoReturns a collection of manifests mapped by id for the supplied ids.- Specified by:
findManifestByIdsin interfaceDataflowTaskExecutionMetadataDao- Parameters:
ids- list of task execution ids.- Returns:
- map of manifests with id as key.
-
deleteManifestsByTaskExecutionIds
Description copied from interface:DataflowTaskExecutionMetadataDaoDeletes the task manifest records associated with the collection of task execution ids provided.- Specified by:
deleteManifestsByTaskExecutionIdsin interfaceDataflowTaskExecutionMetadataDao- Parameters:
taskExecutionIds- collection of ids to delete the manifests for- Returns:
- number of manifests deleted
-