Class CrawlerContext
java.lang.Object
com.norconex.crawler.core.context.CrawlerContext
- All Implemented Interfaces:
Closeable,AutoCloseable
Crawler class holding state properties required for running commands and tasks.
JMX Support
JMX support is disabled by default. To enable it, set the system property
"enableJMX" to true. You can do so by adding this to your Java
launch command:
-DenableJMX=true
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic CrawlerContext.Builderbuilder()protected booleanvoidclose()createCrawlEntry(@NonNull String reference) createDocContext(@NonNull CrawlerEntry parentEntry) booleanMap of map-config name/pattern to concrete value type, used to bake the correct (de)serialization class into the config before startup.Class<? extends CrawlerEntry> getId()Gets the crawler id.inthashCode()voidinit(CrawlerSession session) toString()
-
Field Details
-
NAME
- See Also:
-
-
Method Details
-
getId
Gets the crawler id.- Returns:
- crawler id
-
toString
-
createCrawlEntry
-
createDocContext
-
init
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
builder
-
toBuilder
-
equals
-
canEqual
-
hashCode
public int hashCode() -
getDedupService
-
getCrawlEntryLedger
-
getMetrics
-
getCrawlConfig
-
getBeanMapper
-
getEventManager
-
getCallbacks
-
getCommitterService
-
getImporter
-
getBootstrappers
-
getDocPipelines
-
getFetcher
-
getWorkDir
-
getTempDir
-
getStreamFactory
-
getCrawlEntryType
-
getCacheTypes
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. -
getThreadFactoryCreator
-