Class CrawlerRunInfo.CrawlerRunInfoBuilder
java.lang.Object
com.norconex.crawler.core.session.CrawlerRunInfo.CrawlerRunInfoBuilder
- Enclosing class:
CrawlerRunInfo
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Stable identity of a crawler.crawlMode(CrawlerMode crawlMode) The mode used to crawl web sites.crawlResumeState(CrawlerResumeState crawlResumeState) Whether we are starting a new crawl session or resuming a previous one.crawlRunId(String crawlRunId) Unique identifier for each time the crawler starts (until termination).crawlSessionId(String crawlSessionId) Full life-cycle identifier for a single crawl.toString()
-
Method Details
-
crawlerId
Stable identity of a crawler. Usually configuration-driven.- Returns:
this.
-
crawlSessionId
Full life-cycle identifier for a single crawl. Represents the crawl session, spans multiple cluster restarts/resumes.- Returns:
this.
-
crawlRunId
Unique identifier for each time the crawler starts (until termination). When run on a cluster, it is also an ephemeral cluster instance identifier.- Returns:
this.
-
crawlMode
The mode used to crawl web sites. For any given crawler, a fresh crawl is always aCrawlerMode.FULLcrawl while subsequent crawls are usually consideredCrawlerMode.INCREMENTALcrawls.- Returns:
this.
-
crawlResumeState
Whether we are starting a new crawl session or resuming a previous one.- Returns:
this.
-
build
-
toString
-