|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.smila.processing.worker.PipelineProcessingWorker
public class PipelineProcessingWorker
A worker that is able to execute a pipeline.
| Field Summary | |
|---|---|
static int |
DEFAULT_NUMBER_OF_PARALLEL_RECORDS
default number of parallel records to be processed in one go. |
static java.lang.String |
INPUT_SLOT_NAME
the workers input slot name . |
static java.lang.String |
KEY_NUMBER_OF_PARALLEL_RECORDS
key for the number of parallel records for one execution of the pipeline. |
static java.lang.String |
KEY_PIPELINE_NAME
key for the pipeline's name. |
static java.lang.String |
OUTPUT_SLOT_NAME
the workers output slot name . |
static java.lang.String |
WORKER_NAME
worker's name. |
| Constructor Summary | |
|---|---|
PipelineProcessingWorker()
|
|
| 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 |
setBlackboardFactory(BlackboardFactory factory)
set blackboard factory reference (used by DS). |
void |
setProcessor(WorkflowProcessor processor)
set workflow processor reference (used by DS). |
void |
unsetBlackboardFactory(BlackboardFactory factory)
remove blackboard factory reference (used by DS). |
void |
unsetProcessor(WorkflowProcessor processor)
remove workflow processor reference (used by DS). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String WORKER_NAME
public static final java.lang.String KEY_PIPELINE_NAME
public static final java.lang.String KEY_NUMBER_OF_PARALLEL_RECORDS
public static final int DEFAULT_NUMBER_OF_PARALLEL_RECORDS
public static final java.lang.String INPUT_SLOT_NAME
public static final java.lang.String OUTPUT_SLOT_NAME
| Constructor Detail |
|---|
public PipelineProcessingWorker()
| Method Detail |
|---|
public void perform(TaskContext taskContext)
throws java.lang.Exception
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!
perform in interface WorkertaskContext - the TaskContext information with which this operation can be performed.
java.lang.Exceptionpublic java.lang.String getName()
getName in interface Workerpublic void setProcessor(WorkflowProcessor processor)
public void unsetProcessor(WorkflowProcessor processor)
public void setBlackboardFactory(BlackboardFactory factory)
public void unsetBlackboardFactory(BlackboardFactory factory)
|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||