public interface JobTaskProcessor
Modifier and Type | Method and Description |
---|---|
java.util.List<Task> |
finishTask(Task currentTask)
Finishes a task and retrieves the following tasks.
|
Task |
getInitialTask(java.lang.String workerName,
java.lang.String id)
Creates an initial task for input-workers.
|
java.util.List<Task> finishTask(Task currentTask) throws JobManagerException
currentTask
- The finished task.JobManagerException
- error while trying to finish the task.Task getInitialTask(java.lang.String workerName, java.lang.String id) throws JobManagerException
workerName
- The name of the worker for which this task is requested.id
- The id of the task-source (e.g. index name, job id, ...) for which the task is requested. The TaskProducer
and the worker requester of the tasks should have a common understanding of what this id is about.JobManagerException
- error while trying to generate initial task. The job has not the correct state or the worker is not an
startAction worker.