public class FilesystemCollector
extends com.norconex.collector.core.AbstractCollector
FilesystemCollectorConfig
,
or by XML configuration, loaded using CollectorConfigLoader
.
Instances of this class can hold several crawler, running at once.
This is convenient when there are configuration setting to be shared amongst
crawlers. When you have many crawler jobs defined that have nothing
in common, it may be best to configure and run them separately, to facilitate
troubleshooting. There is no fair rule for this, experimentation
will help you.Constructor and Description |
---|
FilesystemCollector()
Creates a non-configured Filesystem collector.
|
FilesystemCollector(FilesystemCollectorConfig collectorConfig)
Creates and configure an HTTP Collector with the provided
configuration.
|
Modifier and Type | Method and Description |
---|---|
protected com.norconex.collector.core.crawler.ICrawler |
createCrawler(com.norconex.collector.core.crawler.ICrawlerConfig config) |
FilesystemCollectorConfig |
getCollectorConfig() |
static void |
main(String[] args)
Invokes the Filesystem Collector from the command line.
|
public FilesystemCollector()
public FilesystemCollector(FilesystemCollectorConfig collectorConfig)
collectorConfig
- HTTP Collector configurationpublic static void main(String[] args)
args
- Invoke it once without any arguments to get a
list of command-line options.public FilesystemCollectorConfig getCollectorConfig()
getCollectorConfig
in interface com.norconex.collector.core.ICollector
getCollectorConfig
in class com.norconex.collector.core.AbstractCollector
protected com.norconex.collector.core.crawler.ICrawler createCrawler(com.norconex.collector.core.crawler.ICrawlerConfig config)
createCrawler
in class com.norconex.collector.core.AbstractCollector
Copyright © 2014–2023 Norconex Inc.. All rights reserved.