SMILA 1.0 API documentation

org.eclipse.smila.importing.worker
Class UpdatePusherWorker

java.lang.Object
  extended by org.eclipse.smila.importing.worker.WorkerUsingDeltaService
      extended by org.eclipse.smila.importing.worker.UpdatePusherWorker
All Implemented Interfaces:
Worker

public class UpdatePusherWorker
extends WorkerUsingDeltaService

Worker that pushes input records to the bulkbuilder and marks the records as updated in delta indexing.


Field Summary
static java.lang.String DELETE_SHARD_PARAM
          the DeltaService shard prefix to get records to delete from.
 
Constructor Summary
UpdatePusherWorker()
           
 
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 setBulkbuilderService(BulkbuilderService service)
          DS service reference bind method.
 void unsetBulkbuilderService(BulkbuilderService service)
          DS service reference unbind method.
 
Methods inherited from class org.eclipse.smila.importing.worker.WorkerUsingDeltaService
checkDeltaStateTimed, deleteDeltaEntryTimed, getCompoundId, getDeltaImportStrategy, getDeltaImportStrategy, getJobRunId, getRequiredParameter, getUnvisitedEntriesTimed, isCompound, markAsUpdatedTimed, markCompoundElementsVisitedTimed, setDeltaService, unsetDeltaService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DELETE_SHARD_PARAM

public static final java.lang.String DELETE_SHARD_PARAM
the DeltaService shard prefix to get records to delete from.

See Also:
Constant Field Values
Constructor Detail

UpdatePusherWorker

public UpdatePusherWorker()
Method Detail

getName

public java.lang.String getName()
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
Description copied from interface: Worker
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!

Parameters:
taskContext - the TaskContext information with which this operation can be performed.
Throws:
java.lang.Exception

setBulkbuilderService

public void setBulkbuilderService(BulkbuilderService service)
DS service reference bind method.


unsetBulkbuilderService

public void unsetBulkbuilderService(BulkbuilderService service)
DS service reference unbind method.


SMILA 1.0 API documentation