public interface TaskRepository
Modifier and Type | Method and Description |
---|---|
TaskExecution |
completeTaskExecution(long executionId,
Integer exitCode,
Date endTime,
String exitMessage)
Notifies the repository that a taskExecution has completed.
|
TaskExecution |
completeTaskExecution(long executionId,
Integer exitCode,
Date endTime,
String exitMessage,
String errorMessage)
Notifies the repository that a taskExecution has completed.
|
TaskExecution |
createTaskExecution()
Creates an empty TaskExecution with just an id provided.
|
TaskExecution |
createTaskExecution(TaskExecution taskExecution)
Notifies the repository that a taskExecution needs to be created.
|
TaskExecution |
startTaskExecution(long executionid,
String taskName,
Date startTime,
List<String> arguments,
String externalExecutionId)
Notifies the repository that a taskExecution has has started.
|
@Transactional TaskExecution completeTaskExecution(long executionId, Integer exitCode, Date endTime, String exitMessage)
executionId
- to the task execution to be updated.exitCode
- to be stored for this task.endTime
- designated when the task completed.exitMessage
- to be stored for the task.TaskExecution
@Transactional TaskExecution completeTaskExecution(long executionId, Integer exitCode, Date endTime, String exitMessage, String errorMessage)
executionId
- to the task execution to be updated.exitCode
- to be stored for this task.endTime
- designated when the task completed.exitMessage
- to be stored for the task.TaskExecution
@Transactional TaskExecution createTaskExecution(TaskExecution taskExecution)
taskExecution
- a TaskExecution instance containing the startTime,
arguments and externalExecutionId that will be stored in the repository.
Only the values enumerated above will be stored for this
TaskExecution.TaskExecution
that was stored in the repository. The
TaskExecution's taskExecutionId will also contain the id that was used
to store the TaskExecution.@Transactional TaskExecution createTaskExecution()
TaskExecution
@Transactional TaskExecution startTaskExecution(long executionid, String taskName, Date startTime, List<String> arguments, String externalExecutionId)
executionid
- to the task execution to be updated.taskName
- the name that associated with the task execution.startTime
- the time task began.arguments
- list of key/value pairs that configure the task.externalExecutionId
- id assigned to the task by the platform.Copyright © 2017 Pivotal Software, Inc.. All rights reserved.