| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
INPUT_ATTRIBUTE_FEED_URL
(when using input slot) Name of the input record attribute containing the feed URL.
|
static java.lang.String |
INPUT_SLOT_LINKS_TO_CRAWL
Name of the (optional) input slot containing the links to crawl.
|
static java.lang.Long |
MAX_RECORDS_PER_BULK_DEFAULT
default: write up to 1000 records to one output bulk.
|
static java.lang.String |
NAME
Name of the worker, used in worker description and workflows.
|
static java.lang.String |
OUTPUT_SLOT_CRAWLED_RECORDS
name of output slot containing the crawled records.
|
static java.lang.String |
TASK_PARAM_DELTA_PROPERTIES
feed entry properties used for delta hash.
|
static java.lang.String |
TASK_PARAM_FEED_URL
Name of the task parameter that contains the feed URL(s) (may be more than one).
|
static java.lang.String |
TASK_PARAM_MAX_RECORDS_PER_BULK
Maximum number of records in one bulk object.
|
| Constructor and Description |
|---|
FeedCrawlerWorker() |
| Modifier and Type | Method and Description |
|---|---|
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. |
public static final java.lang.String NAME
public static final java.lang.String INPUT_SLOT_LINKS_TO_CRAWL
public static final java.lang.String OUTPUT_SLOT_CRAWLED_RECORDS
public static final java.lang.String TASK_PARAM_FEED_URL
public static final java.lang.String TASK_PARAM_MAX_RECORDS_PER_BULK
public static final java.lang.String TASK_PARAM_DELTA_PROPERTIES
public static final java.lang.String INPUT_ATTRIBUTE_FEED_URL
public static final java.lang.Long MAX_RECORDS_PER_BULK_DEFAULT
public java.lang.String getName()
public void perform(TaskContext taskContext) throws java.lang.Exception
WorkerTaskContext, 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!