public class SimpleTaskRepository extends Object implements TaskRepository
Modifier and Type | Field and Description |
---|---|
static int |
MAX_EXIT_MESSAGE_SIZE |
static int |
MAX_TASK_NAME_SIZE |
Constructor and Description |
---|
SimpleTaskRepository(org.springframework.beans.factory.FactoryBean<TaskExecutionDao> taskExecutionDaoFactoryBean) |
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.
|
TaskExecutionDao |
getTaskExecutionDao()
Retrieves the taskExecutionDao associated with this repository.
|
public static final int MAX_EXIT_MESSAGE_SIZE
public static final int MAX_TASK_NAME_SIZE
public SimpleTaskRepository(org.springframework.beans.factory.FactoryBean<TaskExecutionDao> taskExecutionDaoFactoryBean)
public TaskExecution completeTaskExecution(long executionId, Integer exitCode, Date endTime, String exitMessage)
TaskRepository
completeTaskExecution
in interface TaskRepository
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
public TaskExecution createTaskExecution(String taskName, Date startTime, List<String> arguments)
TaskRepository
createTaskExecution
in interface TaskRepository
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
public TaskExecutionDao getTaskExecutionDao()
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.