|
SMILA 1.0 API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Fetcher
Interface for Fetcher service of the WebCrawlerWorker and WebFetcherWorker. The fetcher is reponsible for getting metadata and content
| Method Summary | |
|---|---|
void |
crawl(Record linkRecord,
AnyMap parameters,
TaskLog taskLog)
invoked by WebCrawlerWorker to resolve the URL in an input record. |
void |
fetch(Record crawledRecord,
AnyMap parameters,
TaskLog taskLog)
invoked by WebFetcherWorker to get the content of a resource for which the crawler did not already attach the content. |
| Method Detail |
|---|
void crawl(Record linkRecord,
AnyMap parameters,
TaskLog taskLog)
throws WebCrawlerException
linkRecord - record containing the URL and maybe additional information necessary to access the web resource.parameters - configuration parameters, may be null.taskLog - log facility provided by worker frame.
WebCrawlerException - if resource cannot be crawled. If recoverable the request should be retried later, else the record should
be skipped by the crawler worker.
void fetch(Record crawledRecord,
AnyMap parameters,
TaskLog taskLog)
throws WebCrawlerException
crawledRecord - parameters - configuration parameters, may be null.taskLog - log facility provided by worker frame.
WebCrawlerException - if resource cannot be fetched. If recoverable the request should be retried later, else the record should
be skipped by the crawler worker.
|
SMILA 1.0 API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||