Class: CrawlerContext
Defined in: | src/kermit/Crawler.Context.coffee |
Overview
A container for properties that need to be shared among all instances of ExtensionPoint and Extension of a given Crawler. Each Crawler has its own, distinct context that it passes to all its extension points.
Any Extension or ExtensionPoint may modify the context to expose additional functionality to other Extensions or ExtensionPoints
Instance Method Summary
- # (void) schedule(url, meta)
- # (void) crawl(url, meta) Access to execution logic of
- # (CrawlerContext) fork() Create a child context that shares all properties with its parent context.
Constructor Details
#
(void)
constructor(config)
Construct a new CrawlerContext
Instance Method Details
#
(void)
schedule(url, meta)
#
(void)
crawl(url, meta)
Access to execution logic of
#
(CrawlerContext)
fork()
Create a child context that shares all properties with its parent context. The child context exposes a method to share properties with all other child contexts