SMILA 1.0 API documentation

org.eclipse.smila.jobmanager
Interface JobTaskProcessor

All Known Implementing Classes:
JobTaskProcessorImpl

public interface JobTaskProcessor

Job management component for handling tasks and workflow runs.


Method Summary
 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.
 

Method Detail

finishTask

java.util.List<Task> finishTask(Task currentTask)
                                throws JobManagerException
Finishes a task and retrieves the following tasks. Dependent on the resultDescription job manager can decide what to do.

Parameters:
currentTask - The finished task.
Returns:
A list of follow up tasks. If there are no follow-up tasks, an empty list will be generated.
Throws:
JobManagerException - error while trying to finish the task.

getInitialTask

Task getInitialTask(java.lang.String workerName,
                    java.lang.String id)
                    throws JobManagerException
Creates an initial task for input-workers.

Parameters:
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.
Returns:
A task for the worker or null if task delivery is currently not allowed for this id.
Throws:
JobManagerException - error while trying to generate initial task. The job has not the correct state or the worker is not an startAction worker.

SMILA 1.0 API documentation