SMILA 1.0 API documentation

org.eclipse.smila.processing.pipelets
Class PushRecordsPipelet

java.lang.Object
  extended by org.eclipse.smila.processing.pipelets.PushRecordsPipelet
All Implemented Interfaces:
Pipelet

public class PushRecordsPipelet
extends java.lang.Object
implements Pipelet

A pipelet that pushs records to a job. Copyright (c) 2012 Attensity Europe GmbH

Author:
Tobias Liefke

Field Summary
static java.lang.String JOB_NAME_PROPERTY
          Name of the property that contains the name of the target job.
 
Constructor Summary
PushRecordsPipelet()
           
 
Method Summary
 void configure(AnyMap config)
          Initializes parameters.
 java.lang.String[] process(Blackboard blackboard, java.lang.String[] recordIds)
          process given records.
 void setConnectivityManager(ConnectivityManager mgr)
          Sets the connectivity manager for testing purposes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JOB_NAME_PROPERTY

public static final java.lang.String JOB_NAME_PROPERTY
Name of the property that contains the name of the target job.

See Also:
Constant Field Values
Constructor Detail

PushRecordsPipelet

public PushRecordsPipelet()
Method Detail

configure

public void configure(AnyMap config)
               throws ProcessingException
Initializes parameters.

Specified by:
configure in interface Pipelet
Parameters:
config - configuration of pipelet.
Throws:
ProcessingException - configuration is not applicable for pipelet (missing properties, wrong datatypes)
See Also:
Pipelet.configure(AnyMap)

process

public java.lang.String[] process(Blackboard blackboard,
                                  java.lang.String[] recordIds)
                           throws ProcessingException
Description copied from interface: Pipelet
process given records.

Specified by:
process in interface Pipelet
Parameters:
blackboard - Blackboard holding and managing the records.
recordIds - Ids of records to process.
Returns:
Ids of records to be passed into the next pipelet. By default this should be the same as the passed in recordIds unless there is a specific (businesslogic) reason not to do so.
Throws:
ProcessingException - error during processing.
See Also:
Pipelet.process(Blackboard, String[])

setConnectivityManager

public void setConnectivityManager(ConnectivityManager mgr)
Sets the connectivity manager for testing purposes.

Parameters:
mgr - The new connectivity manager to set.

SMILA 1.0 API documentation