SMILA 1.0 API documentation

org.eclipse.smila.importing.crawler.file
Class FileFetcherWorker

java.lang.Object
  extended by org.eclipse.smila.importing.crawler.file.FileFetcherWorker
All Implemented Interfaces:
Worker

public class FileFetcherWorker
extends java.lang.Object
implements Worker


Field Summary
protected  Log _log
           
static java.lang.String INPUT_SLOT
           
static java.lang.String NAME
           
static java.lang.String OUTPUT_SLOT
           
 
Constructor Summary
FileFetcherWorker()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final java.lang.String NAME
See Also:
Constant Field Values

INPUT_SLOT

public static final java.lang.String INPUT_SLOT
See Also:
Constant Field Values

OUTPUT_SLOT

public static final java.lang.String OUTPUT_SLOT
See Also:
Constant Field Values

_log

protected final Log _log
Constructor Detail

FileFetcherWorker

public FileFetcherWorker()
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
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!

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

SMILA 1.0 API documentation