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 TypeMethodDescriptionintdeleteTaskExecutionParamsByTaskExecutionIds(Set<Long> taskExecutionIds) Deletes 1 or more task execution parameter records.intdeleteTaskExecutionsByTaskExecutionIds(Set<Long> taskExecutionIds) Deletes 1 or more task executionsintdeleteTaskTaskBatchRelationshipsByTaskExecutionIds(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- theTaskPropertiesto use for this dao.
-
-
Method Details
-
deleteTaskExecutionsByTaskExecutionIds
Description copied from interface:DataflowTaskExecutionDaoDeletes 1 or more task executions- Specified by:
deleteTaskExecutionsByTaskExecutionIdsin interfaceDataflowTaskExecutionDao- Parameters:
taskExecutionIds- Must contain at least 1 taskExecutionId- Returns:
- The number of affected records
-
deleteTaskExecutionParamsByTaskExecutionIds
Description copied from interface:DataflowTaskExecutionDaoDeletes 1 or more task execution parameter records.- Specified by:
deleteTaskExecutionParamsByTaskExecutionIdsin interfaceDataflowTaskExecutionDao- Parameters:
taskExecutionIds- Must contain at least 1 taskExecutionId- Returns:
- The number of affected records
-
deleteTaskTaskBatchRelationshipsByTaskExecutionIds
Description copied from interface:DataflowTaskExecutionDaoDeletes 1 or more task batch relationship records that links batch executions to task executions.- Specified by:
deleteTaskTaskBatchRelationshipsByTaskExecutionIdsin interfaceDataflowTaskExecutionDao- Parameters:
taskExecutionIds- Must contain at least 1 taskExecutionId- Returns:
- The number of affected records
-
findChildTaskExecutionIds
Description copied from interface:DataflowTaskExecutionDaoFinds all the child tasks for the taskExecution that is provided.- Specified by:
findChildTaskExecutionIdsin interfaceDataflowTaskExecutionDao- Parameters:
taskExecutionIds- The ids to theTaskExecutions to be searched- Returns:
- a list of child
TaskExecutions that correspond to theTaskExecutions passed.
-
getTaskExecutionIdsByTaskName
Description copied from interface:DataflowTaskExecutionDaoReturns the Set of task execution IDs by the given task name.- Specified by:
getTaskExecutionIdsByTaskNamein interfaceDataflowTaskExecutionDao- Parameters:
taskName- the task name- Returns:
- the Set of task execution IDs
-
getAllTaskExecutionsCount
Description copied from interface:DataflowTaskExecutionDaoReturns the size of all the task executions with the option to include only the completed executions.- Specified by:
getAllTaskExecutionsCountin 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:DataflowTaskExecutionDaoReturns all the task execution IDs of the completed task executions.- Specified by:
getAllTaskExecutionIdsin 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.
-