Uses of Class
org.springframework.cloud.task.repository.TaskExecution
Packages that use TaskExecution
Package
Description
Interfaces for configuring Spring Cloud Task and a default implementations.
Interface DAO and default implementations for storing and retrieving data for tasks
from a repository.
Classes used for setting up and supporting a task repositories.
-
Uses of TaskExecution in io.spring.configuration
Methods in io.spring.configuration with parameters of type TaskExecution -
Uses of TaskExecution in io.spring.taskobservations
Methods in io.spring.taskobservations with parameters of type TaskExecutionModifier and TypeMethodDescriptionvoidTaskObservationsApplication.afterTask(TaskExecution taskExecution) Prints the metrics as recorded in the simpleMeterRegistry. -
Uses of TaskExecution in org.springframework.cloud.task.batch.listener
Methods in org.springframework.cloud.task.batch.listener with parameters of type TaskExecutionModifier and TypeMethodDescriptionvoidTaskBatchExecutionListener.onTaskStartup(TaskExecution taskExecution) voidTaskBatchDao.saveRelationship(TaskExecution taskExecution, org.springframework.batch.core.JobExecution jobExecution) Saves the relationship between a task execution and a job execution. -
Uses of TaskExecution in org.springframework.cloud.task.batch.listener.support
Methods in org.springframework.cloud.task.batch.listener.support with parameters of type TaskExecutionModifier and TypeMethodDescriptionvoidJdbcTaskBatchDao.saveRelationship(TaskExecution taskExecution, org.springframework.batch.core.JobExecution jobExecution) voidMapTaskBatchDao.saveRelationship(TaskExecution taskExecution, org.springframework.batch.core.JobExecution jobExecution) -
Uses of TaskExecution in org.springframework.cloud.task.batch.partition
Methods in org.springframework.cloud.task.batch.partition with parameters of type TaskExecutionModifier and TypeMethodDescriptionvoidDeployerPartitionHandler.beforeTask(TaskExecution taskExecution) voidSimpleCommandLineArgsProvider.onTaskStartup(TaskExecution taskExecution) Constructors in org.springframework.cloud.task.batch.partition with parameters of type TaskExecutionModifierConstructorDescriptionSimpleCommandLineArgsProvider(TaskExecution taskExecution) TaskLauncherHandler(CommandLineArgsProvider commandLineArgsProvider, TaskRepository taskRepository, boolean defaultArgsAsEnvironmentVars, String stepName, TaskExecution taskExecution, EnvironmentVariablesProvider environmentVariablesProvider, org.springframework.core.io.Resource resource, Map<String, String> deploymentProperties, org.springframework.cloud.deployer.spi.task.TaskLauncher taskLauncher, String applicationName) TaskLauncherHandler(CommandLineArgsProvider commandLineArgsProvider, TaskRepository taskRepository, boolean defaultArgsAsEnvironmentVars, String stepName, TaskExecution taskExecution, EnvironmentVariablesProvider environmentVariablesProvider, org.springframework.core.io.Resource resource, Map<String, String> deploymentProperties, org.springframework.cloud.deployer.spi.task.TaskLauncher taskLauncher, String applicationName, org.springframework.batch.core.StepExecution workerStepExecution) -
Uses of TaskExecution in org.springframework.cloud.task.configuration
Methods in org.springframework.cloud.task.configuration with parameters of type TaskExecutionModifier and TypeMethodDescriptionvoidSingleInstanceTaskListener.lockTask(TaskExecution taskExecution) voidSingleInstanceTaskListener.unlockTaskOnEnd(TaskExecution taskExecution) voidSingleInstanceTaskListener.unlockTaskOnError(TaskExecution taskExecution, Throwable throwable) -
Uses of TaskExecution in org.springframework.cloud.task.listener
Methods in org.springframework.cloud.task.listener that return TaskExecutionMethods in org.springframework.cloud.task.listener with parameters of type TaskExecutionModifier and TypeMethodDescriptiondefault voidTaskExecutionListener.onTaskEnd(TaskExecution taskExecution) Invoked before theTaskExecutionhas been updated in theTaskRepositoryupon task end.voidTaskObservations.onTaskEnd(TaskExecution taskExecution) default voidTaskExecutionListener.onTaskFailed(TaskExecution taskExecution, Throwable throwable) Invoked if an uncaught exception occurs during a task execution.default voidTaskExecutionListener.onTaskStartup(TaskExecution taskExecution) Invoked after theTaskExecutionhas been stored in theTaskRepository.voidTaskObservations.onTaskStartup(TaskExecution taskExecution) Constructors in org.springframework.cloud.task.listener with parameters of type TaskExecution -
Uses of TaskExecution in org.springframework.cloud.task.listener.annotation
Methods in org.springframework.cloud.task.listener.annotation with parameters of type TaskExecutionModifier and TypeMethodDescriptionvoidTaskListenerExecutor.onTaskEnd(TaskExecution taskExecution) Executes all the methods that have been annotated with @AfterTask.voidTaskListenerExecutor.onTaskFailed(TaskExecution taskExecution, Throwable throwable) Executes all the methods that have been annotated with @FailedTask.voidTaskListenerExecutor.onTaskStartup(TaskExecution taskExecution) Executes all the methods that have been annotated with @BeforeTask. -
Uses of TaskExecution in org.springframework.cloud.task.repository
Methods in org.springframework.cloud.task.repository that return TaskExecutionModifier and TypeMethodDescriptionTaskRepository.completeTaskExecution(long executionId, Integer exitCode, LocalDateTime endTime, String exitMessage) Notifies the repository that a taskExecution has completed.TaskRepository.completeTaskExecution(long executionId, Integer exitCode, LocalDateTime endTime, String exitMessage, String errorMessage) Notifies the repository that a taskExecution has completed.TaskRepository.createTaskExecution()Creates an empty TaskExecution with just an id provided.TaskRepository.createTaskExecution(String name) Creates an empty TaskExecution with just an id and name provided.TaskRepository.createTaskExecution(TaskExecution taskExecution) Notifies the repository that a taskExecution needs to be created.TaskExplorer.getLatestTaskExecutionForTaskName(String taskName) Returns the latest task execution for a given task name.TaskExplorer.getTaskExecution(long executionId) Retrieve aTaskExecutionby its id.TaskRepository.startTaskExecution(long executionid, String taskName, LocalDateTime startTime, List<String> arguments, String externalExecutionId) Notifies the repository that a taskExecution has has started.TaskRepository.startTaskExecution(long executionid, String taskName, LocalDateTime startTime, List<String> arguments, String externalExecutionId, Long parentExecutionId) Notifies the repository that a taskExecution has has started.Methods in org.springframework.cloud.task.repository that return types with arguments of type TaskExecutionModifier and TypeMethodDescriptionorg.springframework.data.domain.Page<TaskExecution>TaskExplorer.findAll(org.springframework.data.domain.Pageable pageable) Retrieves all the task executions within the pageable constraints sorted by start date descending, taskExecution id descending.org.springframework.data.domain.Page<TaskExecution>TaskExplorer.findRunningTaskExecutions(String taskName, org.springframework.data.domain.Pageable pageable) Retrieve a collection of taskExecutions that have the task name provided.org.springframework.data.domain.Page<TaskExecution>TaskExplorer.findTaskExecutionsByName(String taskName, org.springframework.data.domain.Pageable pageable) Get a collection/page of executions.TaskExplorer.getLatestTaskExecutionsByTaskNames(String... taskNames) Returns aListof the latestTaskExecutionfor 1 or more task names.Methods in org.springframework.cloud.task.repository with parameters of type TaskExecutionModifier and TypeMethodDescriptionTaskRepository.createTaskExecution(TaskExecution taskExecution) Notifies the repository that a taskExecution needs to be created. -
Uses of TaskExecution in org.springframework.cloud.task.repository.dao
Methods in org.springframework.cloud.task.repository.dao that return TaskExecutionModifier and TypeMethodDescriptionJdbcTaskExecutionDao.createTaskExecution(String taskName, LocalDateTime startTime, List<String> arguments, String externalExecutionId) JdbcTaskExecutionDao.createTaskExecution(String taskName, LocalDateTime startTime, List<String> arguments, String externalExecutionId, Long parentExecutionId) MapTaskExecutionDao.createTaskExecution(String taskName, LocalDateTime startTime, List<String> arguments, String externalExecutionId) MapTaskExecutionDao.createTaskExecution(String taskName, LocalDateTime startTime, List<String> arguments, String externalExecutionId, Long parentExecutionId) TaskExecutionDao.createTaskExecution(String taskName, LocalDateTime startTime, List<String> arguments, String externalExecutionId) Save a newTaskExecution.TaskExecutionDao.createTaskExecution(String taskName, LocalDateTime startTime, List<String> arguments, String externalExecutionId, Long parentExecutionId) Save a newTaskExecution.JdbcTaskExecutionDao.getLatestTaskExecutionForTaskName(String taskName) MapTaskExecutionDao.getLatestTaskExecutionForTaskName(String taskName) TaskExecutionDao.getLatestTaskExecutionForTaskName(String taskName) Returns the latest task execution for a given task name.JdbcTaskExecutionDao.getTaskExecution(long executionId) MapTaskExecutionDao.getTaskExecution(long executionId) TaskExecutionDao.getTaskExecution(long executionId) Retrieves a task execution from the task repository.JdbcTaskExecutionDao.startTaskExecution(long executionId, String taskName, LocalDateTime startTime, List<String> arguments, String externalExecutionId) JdbcTaskExecutionDao.startTaskExecution(long executionId, String taskName, LocalDateTime startTime, List<String> arguments, String externalExecutionId, Long parentExecutionId) MapTaskExecutionDao.startTaskExecution(long executionId, String taskName, LocalDateTime startTime, List<String> arguments, String externalExecutionid) MapTaskExecutionDao.startTaskExecution(long executionId, String taskName, LocalDateTime startTime, List<String> arguments, String externalExecutionid, Long parentExecutionId) TaskExecutionDao.startTaskExecution(long executionId, String taskName, LocalDateTime startTime, List<String> arguments, String externalExecutionId) Update and existingTaskExecutionto mark it as started.TaskExecutionDao.startTaskExecution(long executionId, String taskName, LocalDateTime startTime, List<String> arguments, String externalExecutionId, Long parentExecutionId) Update and existingTaskExecutionto mark it as started.Methods in org.springframework.cloud.task.repository.dao that return types with arguments of type TaskExecutionModifier and TypeMethodDescriptionorg.springframework.data.domain.Page<TaskExecution>JdbcTaskExecutionDao.findAll(org.springframework.data.domain.Pageable pageable) org.springframework.data.domain.Page<TaskExecution>MapTaskExecutionDao.findAll(org.springframework.data.domain.Pageable pageable) org.springframework.data.domain.Page<TaskExecution>TaskExecutionDao.findAll(org.springframework.data.domain.Pageable pageable) Retrieves all the task executions within the pageable constraints.org.springframework.data.domain.Page<TaskExecution>JdbcTaskExecutionDao.findRunningTaskExecutions(String taskName, org.springframework.data.domain.Pageable pageable) org.springframework.data.domain.Page<TaskExecution>MapTaskExecutionDao.findRunningTaskExecutions(String taskName, org.springframework.data.domain.Pageable pageable) org.springframework.data.domain.Page<TaskExecution>TaskExecutionDao.findRunningTaskExecutions(String taskName, org.springframework.data.domain.Pageable pageable) Retrieves a set of task executions that are running for a taskName.org.springframework.data.domain.Page<TaskExecution>JdbcTaskExecutionDao.findTaskExecutionsByName(String taskName, org.springframework.data.domain.Pageable pageable) org.springframework.data.domain.Page<TaskExecution>MapTaskExecutionDao.findTaskExecutionsByName(String taskName, org.springframework.data.domain.Pageable pageable) org.springframework.data.domain.Page<TaskExecution>TaskExecutionDao.findTaskExecutionsByName(String taskName, org.springframework.data.domain.Pageable pageable) Retrieves a subset of task executions by task name, start location and size.JdbcTaskExecutionDao.getLatestTaskExecutionsByTaskNames(String... taskNames) MapTaskExecutionDao.getLatestTaskExecutionsByTaskNames(String... taskNames) TaskExecutionDao.getLatestTaskExecutionsByTaskNames(String... taskNames) Returns aListof the latestTaskExecutionfor 1 or more task names.MapTaskExecutionDao.getTaskExecutions() -
Uses of TaskExecution in org.springframework.cloud.task.repository.support
Methods in org.springframework.cloud.task.repository.support that return TaskExecutionModifier and TypeMethodDescriptionSimpleTaskRepository.completeTaskExecution(long executionId, Integer exitCode, LocalDateTime endTime, String exitMessage) SimpleTaskRepository.completeTaskExecution(long executionId, Integer exitCode, LocalDateTime endTime, String exitMessage, String errorMessage) SimpleTaskRepository.createTaskExecution()SimpleTaskRepository.createTaskExecution(String name) SimpleTaskRepository.createTaskExecution(TaskExecution taskExecution) SimpleTaskExplorer.getLatestTaskExecutionForTaskName(String taskName) SimpleTaskExplorer.getTaskExecution(long executionId) SimpleTaskRepository.startTaskExecution(long executionid, String taskName, LocalDateTime startTime, List<String> arguments, String externalExecutionId) SimpleTaskRepository.startTaskExecution(long executionid, String taskName, LocalDateTime startTime, List<String> arguments, String externalExecutionId, Long parentExecutionId) Methods in org.springframework.cloud.task.repository.support that return types with arguments of type TaskExecutionModifier and TypeMethodDescriptionorg.springframework.data.domain.Page<TaskExecution>SimpleTaskExplorer.findAll(org.springframework.data.domain.Pageable pageable) org.springframework.data.domain.Page<TaskExecution>SimpleTaskExplorer.findRunningTaskExecutions(String taskName, org.springframework.data.domain.Pageable pageable) org.springframework.data.domain.Page<TaskExecution>SimpleTaskExplorer.findTaskExecutionsByName(String taskName, org.springframework.data.domain.Pageable pageable) SimpleTaskExplorer.getLatestTaskExecutionsByTaskNames(String... taskNames) Methods in org.springframework.cloud.task.repository.support with parameters of type TaskExecutionModifier and TypeMethodDescriptionSimpleTaskRepository.createTaskExecution(TaskExecution taskExecution)