public class PipelineProcessorWorker extends ProcessingWorker
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_PIPELINERUN_BULKSIZE
default number of parallel records to be processed in one go.
|
static java.lang.String |
KEY_PIPELINE_NAME
key for the pipeline's name.
|
static java.lang.String |
KEY_PIPELINERUN_BULKSIZE
key for the number of parallel records for one execution of the pipeline.
|
static java.lang.String |
WORKER_NAME
worker's name.
|
_binStorageAvailable, _blackboardFactory, _log, INPUT_SLOT_NAME, KEY_KEEPATTACHMENTSINMEMORY, KEY_WRITEATTACHMENTSTOOUTPUT, OUTPUT_SLOT_NAME, s_noBinStorageAvailableLogged| Constructor and Description |
|---|
PipelineProcessorWorker() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName() |
boolean |
perform(AnyMap parameters,
RecordInput recordInput,
RecordOutput recordOutput,
TaskContext taskContext) |
void |
setProcessor(WorkflowProcessor processor)
set workflow processor reference (used by DS).
|
void |
unsetProcessor(WorkflowProcessor processor)
remove workflow processor reference (used by DS).
|
cleanupBlackboard, getBlackboard, perform, setBlackboardFactory, unsetBlackboardFactory, writeResultRecordspublic static final java.lang.String WORKER_NAME
public static final java.lang.String KEY_PIPELINE_NAME
public static final java.lang.String KEY_PIPELINERUN_BULKSIZE
public static final int DEFAULT_PIPELINERUN_BULKSIZE
public java.lang.String getName()
public boolean perform(AnyMap parameters, RecordInput recordInput, RecordOutput recordOutput, TaskContext taskContext) throws java.lang.Exception
perform in class ProcessingWorkerparameters - task parameters, converted to an AnyMaprecordInput - input bulkrecordOutput - output bulk, can be nulltaskContext - task contextjava.lang.Exception - bulk could not be processedpublic void setProcessor(WorkflowProcessor processor)
public void unsetProcessor(WorkflowProcessor processor)