SMILA (incubation) API documentation

org.eclipse.smila.jobmanager.worker
Class FinishTaskWorker

java.lang.Object
  extended by org.eclipse.smila.jobmanager.worker.FinishTaskWorker
All Implemented Interfaces:
Worker

public class FinishTaskWorker
extends java.lang.Object
implements Worker

Worker for asynchronous finishing of tasks.


Constructor Summary
FinishTaskWorker()
           
 
Method Summary
 java.lang.String getName()
          
 void perform(TaskContext taskContext)
          Performs a computation on the data available in the TaskContext, such as a task for this worker, input and (if configured) output slots.
 void setJobManager(JobManager jobManager)
          Sets the reference to the JobManager service.
 void setTaskManager(TaskManager taskManager)
          set task manager to use before activation.
 void unsetJobManager(JobManager jobManager)
          Resets the reference to the JobManager service to null if the given jobManager instance is set.
 void unsetTaskManager(TaskManager taskManager)
          remove task manager after deactivation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FinishTaskWorker

public FinishTaskWorker()
Method Detail

getName

public java.lang.String getName()

Specified by:
getName in interface Worker
Returns:
the name of the worker. The worker function will be executed for tasks tied to this worker name.

perform

public void perform(TaskContext taskContext)
             throws java.lang.Exception
Performs a computation on the data available in the TaskContext, such as a task for this worker, input and (if configured) output slots. An implementor must make sure, calls to this method must be thread-safe!

Specified by:
perform in interface Worker
Parameters:
taskContext - the TaskContext information with which this operation can be performed.
Throws:
java.lang.Exception

setJobManager

public void setJobManager(JobManager jobManager)
Sets the reference to the JobManager service.

Parameters:
jobManager - the reference to the JobManager service.

unsetJobManager

public void unsetJobManager(JobManager jobManager)
Resets the reference to the JobManager service to null if the given jobManager instance is set.

Parameters:
jobManager - the reference to the current JobManager service.

setTaskManager

public void setTaskManager(TaskManager taskManager)
set task manager to use before activation.

Parameters:
taskManager - the task manager

unsetTaskManager

public void unsetTaskManager(TaskManager taskManager)
remove task manager after deactivation.

Parameters:
taskManager - the task manager

SMILA (incubation) API documentation