Class JdbcDataflowTaskExecutionDao
java.lang.Object
org.springframework.cloud.dataflow.server.repository.JdbcDataflowTaskExecutionDao
- All Implemented Interfaces:
DataflowTaskExecutionDao
Manages Task Execution information using a JDBC DataSource. Mirrors the
JdbcTaskExecutionDao
but contains Spring Cloud Data Flow specific operations. This functionality might
be migrated to Spring Cloud Task itself eventually.- Author:
- Gunnar Hillert, Glenn Renfro, Ilayaperumal Gopinathan, Corneil du Plessis
-
Constructor Summary
ConstructorsConstructorDescriptionJdbcDataflowTaskExecutionDao
(DataSource dataSource, org.springframework.cloud.task.configuration.TaskProperties taskProperties) -
Method Summary
Modifier and TypeMethodDescriptionint
deleteTaskExecutionParamsByTaskExecutionIds
(Set<Long> taskExecutionIds) Deletes 1 or more task execution parameter records.int
deleteTaskExecutionsByTaskExecutionIds
(Set<Long> taskExecutionIds) Deletes 1 or more task executionsint
deleteTaskTaskBatchRelationshipsByTaskExecutionIds
(Set<Long> taskExecutionIds) Deletes 1 or more task batch relationship records that links batch executions to task executions.findChildTaskExecutionIds
(Set<Long> taskExecutionIds) Finds all the child tasks for the taskExecution that is provided.getAllTaskExecutionIds
(boolean onlyCompleted, String taskName) Returns all the task execution IDs of the completed task executions.getAllTaskExecutionsCount
(boolean onlyCompleted, String taskName) Returns the size of all the task executions with the option to include only the completed executions.getTaskExecutionIdsByTaskName
(String taskName) Returns the Set of task execution IDs by the given task name.
-
Constructor Details
-
JdbcDataflowTaskExecutionDao
public JdbcDataflowTaskExecutionDao(DataSource dataSource, org.springframework.cloud.task.configuration.TaskProperties taskProperties) - Parameters:
dataSource
- used by the dao to execute queries and updates the tables.taskProperties
- theTaskProperties
to use for this dao.
-
-
Method Details
-
deleteTaskExecutionsByTaskExecutionIds
Description copied from interface:DataflowTaskExecutionDao
Deletes 1 or more task executions- Specified by:
deleteTaskExecutionsByTaskExecutionIds
in interfaceDataflowTaskExecutionDao
- Parameters:
taskExecutionIds
- Must contain at least 1 taskExecutionId- Returns:
- The number of affected records
-
deleteTaskExecutionParamsByTaskExecutionIds
Description copied from interface:DataflowTaskExecutionDao
Deletes 1 or more task execution parameter records.- Specified by:
deleteTaskExecutionParamsByTaskExecutionIds
in interfaceDataflowTaskExecutionDao
- Parameters:
taskExecutionIds
- Must contain at least 1 taskExecutionId- Returns:
- The number of affected records
-
deleteTaskTaskBatchRelationshipsByTaskExecutionIds
Description copied from interface:DataflowTaskExecutionDao
Deletes 1 or more task batch relationship records that links batch executions to task executions.- Specified by:
deleteTaskTaskBatchRelationshipsByTaskExecutionIds
in interfaceDataflowTaskExecutionDao
- Parameters:
taskExecutionIds
- Must contain at least 1 taskExecutionId- Returns:
- The number of affected records
-
findChildTaskExecutionIds
Description copied from interface:DataflowTaskExecutionDao
Finds all the child tasks for the taskExecution that is provided.- Specified by:
findChildTaskExecutionIds
in interfaceDataflowTaskExecutionDao
- Parameters:
taskExecutionIds
- The ids to theTaskExecution
s to be searched- Returns:
- a list of child
TaskExecution
s that correspond to theTaskExecution
s passed.
-
getTaskExecutionIdsByTaskName
Description copied from interface:DataflowTaskExecutionDao
Returns the Set of task execution IDs by the given task name.- Specified by:
getTaskExecutionIdsByTaskName
in interfaceDataflowTaskExecutionDao
- Parameters:
taskName
- the task name- Returns:
- the Set of task execution IDs
-
getAllTaskExecutionsCount
Description copied from interface:DataflowTaskExecutionDao
Returns the size of all the task executions with the option to include only the completed executions.- Specified by:
getAllTaskExecutionsCount
in interfaceDataflowTaskExecutionDao
- Parameters:
onlyCompleted
- filter by completed task executionstaskName
- the task name, if null then retrieve all the tasks- Returns:
- The count of task executions matching inputs.
-
getAllTaskExecutionIds
Description copied from interface:DataflowTaskExecutionDao
Returns all the task execution IDs of the completed task executions.- Specified by:
getAllTaskExecutionIds
in interfaceDataflowTaskExecutionDao
- Parameters:
onlyCompleted
- filter by completed task executionstaskName
- the task name, if null then retrieve all the tasks- Returns:
- The set of all execution ids matching inputs.
-