public interface DataflowTaskExecutionQueryDao
TaskExecutions. Mirrors the TaskExecutionDao
but contains Spring Cloud Data Flow specific operations. This functionality might
be migrated to Spring Cloud Task itself.| Modifier and Type | Method and Description |
|---|---|
org.springframework.data.domain.Page<org.springframework.cloud.dataflow.schema.AggregateTaskExecution> |
findAll(org.springframework.data.domain.Pageable pageable)
Retrieves all the task executions within the pageable constraints.
|
List<org.springframework.cloud.dataflow.schema.AggregateTaskExecution> |
findChildTaskExecutions(Collection<Long> parentIds,
String schemaTarget)
Retrieves a list of task executions where the provided execution ids and schemaTarget represents the parents of task executions.
|
List<org.springframework.cloud.dataflow.schema.AggregateTaskExecution> |
findChildTaskExecutions(long executionId,
String schemaTarget)
Retrieves a list of task executions where the provided execution id and schemaTarget represents the parent of task execution.
|
org.springframework.data.domain.Page<org.springframework.cloud.dataflow.schema.AggregateTaskExecution> |
findRunningTaskExecutions(String taskName,
org.springframework.data.domain.Pageable pageable)
Retrieves a set of task executions that are running for a taskName.
|
List<org.springframework.cloud.dataflow.schema.AggregateTaskExecution> |
findTaskExecutions(String taskName,
boolean completed)
Find task executions by task name and completion status.
|
List<org.springframework.cloud.dataflow.schema.AggregateTaskExecution> |
findTaskExecutionsBeforeEndTime(String taskName,
Date endTime)
Find task executions by task name whose end date is before the specified date.
|
org.springframework.data.domain.Page<org.springframework.cloud.dataflow.schema.AggregateTaskExecution> |
findTaskExecutionsByName(String taskName,
org.springframework.data.domain.Pageable pageable)
Retrieves a subset of task executions by task name, start location and size.
|
org.springframework.cloud.dataflow.schema.AggregateTaskExecution |
geTaskExecutionByExecutionId(String executionId,
String taskName) |
long |
getCompletedTaskExecutionCountByTaskName(String taskName)
Retrieves current number of task executions for a taskName and with a non-null endTime.
|
long |
getCompletedTaskExecutionCountByTaskNameAndBeforeDate(String taskName,
Date endTime)
Retrieves current number of task executions for a taskName and with a non-null endTime before the specified date.
|
org.springframework.cloud.dataflow.schema.AggregateTaskExecution |
getLatestTaskExecutionForTaskName(String taskName)
Returns the latest task execution for a given task name.
|
List<org.springframework.cloud.dataflow.schema.AggregateTaskExecution> |
getLatestTaskExecutionsByTaskNames(String... taskNames)
Returns a
List of the latest TaskExecution for 1 or more task
names. |
long |
getRunningTaskExecutionCount()
Retrieves current number of task executions with an endTime of null.
|
long |
getRunningTaskExecutionCountByTaskName(String taskName)
Retrieves current number of task executions for a taskName and with an endTime of
null.
|
org.springframework.cloud.dataflow.schema.AggregateTaskExecution |
getTaskExecution(long executionId,
String schemaTarget)
Retrieves a task execution from the task repository.
|
long |
getTaskExecutionCount()
Retrieves current number of task executions.
|
long |
getTaskExecutionCountByTaskName(String taskName)
Retrieves current number of task executions for a taskName.
|
List<String> |
getTaskNames()
Retrieves a sorted list of distinct task names for the task executions.
|
org.springframework.cloud.dataflow.schema.AggregateTaskExecution getTaskExecution(long executionId,
String schemaTarget)
executionId - the id associated with the task execution.schemaTarget - the schema target.List<org.springframework.cloud.dataflow.schema.AggregateTaskExecution> findChildTaskExecutions(long executionId, String schemaTarget)
executionId - parent task execution idschemaTarget - parent task schema targetList<org.springframework.cloud.dataflow.schema.AggregateTaskExecution> findChildTaskExecutions(Collection<Long> parentIds, String schemaTarget)
parentIds - parent task execution idsschemaTarget - parent task schema targetList<org.springframework.cloud.dataflow.schema.AggregateTaskExecution> findTaskExecutions(String taskName, boolean completed)
taskName - the name of the task to search for in the repository.completed - whether to include only completed task executions.List<org.springframework.cloud.dataflow.schema.AggregateTaskExecution> findTaskExecutionsBeforeEndTime(String taskName, @NonNull Date endTime)
taskName - the name of the task to search for in the repository.endTime - the time before the task ended.long getTaskExecutionCountByTaskName(String taskName)
taskName - the name of the tasklong getCompletedTaskExecutionCountByTaskNameAndBeforeDate(String taskName, @NonNull Date endTime)
taskName - the name of the taskendTime - the time before task endedlong getCompletedTaskExecutionCountByTaskName(String taskName)
taskName - the name of the tasklong getRunningTaskExecutionCountByTaskName(String taskName)
taskName - the name of the task to search for in the repository.long getRunningTaskExecutionCount()
long getTaskExecutionCount()
org.springframework.data.domain.Page<org.springframework.cloud.dataflow.schema.AggregateTaskExecution> findRunningTaskExecutions(String taskName, org.springframework.data.domain.Pageable pageable)
taskName - the name of the task to search for in the repository.pageable - the constraints for the search.org.springframework.data.domain.Page<org.springframework.cloud.dataflow.schema.AggregateTaskExecution> findTaskExecutionsByName(String taskName, org.springframework.data.domain.Pageable pageable)
taskName - the name of the task to search for in the repository.pageable - the constraints for the search.List<String> getTaskNames()
org.springframework.data.domain.Page<org.springframework.cloud.dataflow.schema.AggregateTaskExecution> findAll(org.springframework.data.domain.Pageable pageable)
pageable - the constraints for the searchList<org.springframework.cloud.dataflow.schema.AggregateTaskExecution> getLatestTaskExecutionsByTaskNames(String... taskNames)
List of the latest TaskExecution for 1 or more task
names.
Latest is defined by the most recent start time. A TaskExecution does not
have to be finished (The results may including pending TaskExecutions).
It is theoretically possible that a TaskExecution with the same name to
have more than 1 TaskExecution for the exact same start time. In that case
the TaskExecution with the highest Task Execution ID is returned.
This method will not consider end times in its calculations. Thus, when a task
execution A starts after task execution B but finishes BEFORE task
execution A, then task execution B is being returned.
taskNames - At least 1 task name must be providedorg.springframework.cloud.dataflow.schema.AggregateTaskExecution getLatestTaskExecutionForTaskName(String taskName)
getLatestTaskExecutionsByTaskNames(String...)
but will only return a single result.taskName - Must not be null or emptygetLatestTaskExecutionsByTaskNames(String...)Copyright © 2024 Pivotal Software, Inc.. All rights reserved.