Class CrawlerContext.Builder
java.lang.Object
com.norconex.crawler.core.context.CrawlerContext.Builder
- Enclosing class:
CrawlerContext
-
Method Summary
Modifier and TypeMethodDescriptionbeanMapper(BeanMapper beanMapper) bootstrapper(CrawlerBootstrapper bootstrapper) bootstrappers(Collection<? extends CrawlerBootstrapper> bootstrappers) build()cacheTypes(Map<String, Class<?>> cacheTypes) Map of map-config name/pattern to concrete value type, used to bake the correct (de)serialization class into the config before startup.callbacks(CrawlerCallbacks callbacks) committerService(CommitterService<Doc> committerService) crawlConfig(CrawlerConfig crawlConfig) crawlEntryLedger(CrawlerEntryLedger crawlEntryLedger) crawlEntryType(Class<? extends CrawlerEntry> crawlEntryType) dedupService(DedupService dedupService) docPipelines(CrawlerDocPipelines docPipelines) eventManager(EventManager eventManager) metrics(CrawlerMetrics metrics) streamFactory(CachedStreamFactory streamFactory) threadFactoryCreator(ScopedThreadFactoryCreator threadFactoryCreator) toString()
-
Method Details
-
dedupService
- Returns:
this.
-
crawlEntryLedger
- Returns:
this.
-
metrics
- Returns:
this.
-
crawlConfig
- Returns:
this.
-
beanMapper
- Returns:
this.
-
eventManager
- Returns:
this.
-
callbacks
- Returns:
this.
-
committerService
- Returns:
this.
-
importer
- Returns:
this.
-
bootstrapper
-
bootstrappers
public CrawlerContext.Builder bootstrappers(Collection<? extends CrawlerBootstrapper> bootstrappers) -
clearBootstrappers
-
docPipelines
- Returns:
this.
-
fetcher
- Returns:
this.
-
workDir
- Returns:
this.
-
tempDir
- Returns:
this.
-
streamFactory
- Returns:
this.
-
crawlEntryType
- Returns:
this.
-
cacheTypes
Map of map-config name/pattern to concrete value type, used to bake the correct (de)serialization class into the config before startup. Populated fromCrawlerDriver.cacheTypes(); the framework always addsledger_* -> crawlEntryTypeautomatically.- Returns:
this.
-
threadFactoryCreator
- Returns:
this.
-
build
-
toString
-