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 |
createTaskExecution(String taskName,
Date startTime,
List<String> arguments)
Notifies the repository that a taskExecution needs to be created.
|
@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 createTaskExecution(String taskName, Date startTime, List<String> arguments)
taskName
- the name that associated with the task execution.startTime
- the time task began.arguments
- list of key/value pairs that configure the task.TaskExecution
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.