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(String name)
Creates an empty TaskExecution with just an id and name 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.
|
TaskExecution |
startTaskExecution(long executionid,
String taskName,
Date startTime,
List<String> arguments,
String externalExecutionId,
Long parentExecutionId)
Notifies the repository that a taskExecution has has started.
|
void |
updateExternalExecutionId(long executionid,
String externalExecutionId)
Notifies the repository to update the taskExecution's externalExecutionId.
|
@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 execution.endTime
- designated when the task completed.exitMessage
- to be stored for the task execution.errorMessage
- to be stored for the task execution.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(String name)
name
- task name to be associated with the task execution.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.@Transactional void updateExternalExecutionId(long executionid, String externalExecutionId)
executionid
- to the task execution to be updated.externalExecutionId
- id assigned to the task by the platform.@Transactional TaskExecution startTaskExecution(long executionid, String taskName, Date startTime, List<String> arguments, String externalExecutionId, Long parentExecutionId)
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.parentExecutionId
- the parent task execution id.Copyright © 2021 Pivotal Software, Inc.. All rights reserved.