public class FilesystemCrawlerConfig
extends com.norconex.collector.core.crawler.AbstractCrawlerConfig
Constructor and Description |
---|
FilesystemCrawlerConfig() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
IFileDocumentFetcher |
getDocumentFetcher()
Gets the document fetcher.
|
com.norconex.collector.core.checksum.IMetadataChecksummer |
getMetadataChecksummer() |
IFileMetadataFetcher |
getMetadataFetcher()
Gets the document metadata fetcher.
|
IFilesystemOptionsProvider |
getOptionsProvider()
Gets the file system options provider.
|
String[] |
getPathsFiles() |
IFileDocumentProcessor[] |
getPostImportProcessors() |
IFileDocumentProcessor[] |
getPreImportProcessors() |
String[] |
getStartPaths() |
IStartPathsProvider[] |
getStartPathsProviders()
Gets the providers of paths used as starting points for crawling.
|
int |
hashCode() |
boolean |
isKeepDownloads() |
protected void |
loadCrawlerConfigFromXML(XMLConfiguration xml) |
protected void |
saveCrawlerConfigToXML(Writer out) |
void |
setDocumentFetcher(IFileDocumentFetcher documentFetcher)
Sets the document fetcher.
|
void |
setKeepDownloads(boolean keepDownloads) |
void |
setMetadataChecksummer(com.norconex.collector.core.checksum.IMetadataChecksummer metadataChecksummer) |
void |
setMetadataFetcher(IFileMetadataFetcher metadataFetcher)
Sets the document metadata fetcher.
|
void |
setOptionsProvider(IFilesystemOptionsProvider filesystemOptionsProvider)
Sets the file system options provider.
|
void |
setPathsFiles(String[] pathsFiles) |
void |
setPostImportProcessors(IFileDocumentProcessor[] filePostProcessors) |
void |
setPreImportProcessors(IFileDocumentProcessor[] filePostProcessors) |
void |
setStartPaths(String[] startPaths) |
void |
setStartPathsProviders(IStartPathsProvider... startPathsProviders)
Sets the providers of paths used as starting points for crawling.
|
String |
toString() |
defaultIfEmpty, getCommitter, getCrawlDataStoreFactory, getCrawlerListeners, getDocumentChecksummer, getDocumentFilters, getId, getImporterConfig, getMaxDocuments, getMetadataFilters, getNumThreads, getOrphansStrategy, getReferenceFilters, getSpoiledReferenceStrategizer, getStopOnExceptions, getWorkDir, loadFromXML, saveToXML, setCommitter, setCrawlDataStoreFactory, setCrawlerListeners, setDocumentChecksummer, setDocumentFilters, setId, setImporterConfig, setMaxDocuments, setMetadataFilters, setNumThreads, setOrphansStrategy, setReferenceFilters, setSpoiledReferenceStrategizer, setStopOnExceptions, setWorkDir, writeArray, writeObject, writeObject
public String[] getStartPaths()
public void setStartPaths(String[] startPaths)
public String[] getPathsFiles()
public void setPathsFiles(String[] pathsFiles)
public IStartPathsProvider[] getStartPathsProviders()
public void setStartPathsProviders(IStartPathsProvider... startPathsProviders)
startPathsProviders
- start paths providerpublic boolean isKeepDownloads()
public void setKeepDownloads(boolean keepDownloads)
public IFilesystemOptionsProvider getOptionsProvider()
GenericFilesystemOptionsProvider
.public void setOptionsProvider(IFilesystemOptionsProvider filesystemOptionsProvider)
null
.filesystemOptionsProvider
- file system options providerpublic IFileMetadataFetcher getMetadataFetcher()
GenericFileMetadataFetcher
.public void setMetadataFetcher(IFileMetadataFetcher metadataFetcher)
null
.metadataFetcher
- metadata fetcherpublic com.norconex.collector.core.checksum.IMetadataChecksummer getMetadataChecksummer()
public void setMetadataChecksummer(com.norconex.collector.core.checksum.IMetadataChecksummer metadataChecksummer)
public IFileDocumentFetcher getDocumentFetcher()
GenericFileDocumentFetcher
.public void setDocumentFetcher(IFileDocumentFetcher documentFetcher)
null
.documentFetcher
- document fetcherpublic IFileDocumentProcessor[] getPreImportProcessors()
public void setPreImportProcessors(IFileDocumentProcessor[] filePostProcessors)
public IFileDocumentProcessor[] getPostImportProcessors()
public void setPostImportProcessors(IFileDocumentProcessor[] filePostProcessors)
protected void saveCrawlerConfigToXML(Writer out) throws IOException
saveCrawlerConfigToXML
in class com.norconex.collector.core.crawler.AbstractCrawlerConfig
IOException
protected void loadCrawlerConfigFromXML(XMLConfiguration xml) throws IOException
loadCrawlerConfigFromXML
in class com.norconex.collector.core.crawler.AbstractCrawlerConfig
IOException
public boolean equals(Object other)
equals
in class com.norconex.collector.core.crawler.AbstractCrawlerConfig
public int hashCode()
hashCode
in class com.norconex.collector.core.crawler.AbstractCrawlerConfig
public String toString()
toString
in class com.norconex.collector.core.crawler.AbstractCrawlerConfig
Copyright © 2014–2023 Norconex Inc.. All rights reserved.