public class BasicJDBCCrawlDataStoreFactory extends Object implements ICrawlDataStoreFactory, IXMLConfigurable
JDBC implementation of ICrawlDataStore
using H2 database.
<crawlDataStoreFactory class="com.norconex.collector.core.data.store.impl.jdbc.BasicJDBCCrawlDataStoreFactory"/>
The following changes the default to use an H2 database.
<crawlDataStoreFactory class="com.norconex.collector.core.data.store.impl.jdbc.BasicJDBCCrawlDataStoreFactory"/>
Constructor and Description |
---|
BasicJDBCCrawlDataStoreFactory() |
Modifier and Type | Method and Description |
---|---|
ICrawlDataStore |
createCrawlDataStore(ICrawlerConfig config,
boolean resume)
Creates a new crawl data store.
|
protected IJDBCSerializer |
createJDBCSerializer() |
boolean |
equals(Object other) |
int |
hashCode() |
void |
loadFromXML(Reader in) |
void |
saveToXML(Writer out) |
String |
toString() |
protected IJDBCSerializer createJDBCSerializer()
public ICrawlDataStore createCrawlDataStore(ICrawlerConfig config, boolean resume)
ICrawlDataStoreFactory
createCrawlDataStore
in interface ICrawlDataStoreFactory
config
- crawler configurationresume
- whether the crawler was started or resumedpublic void loadFromXML(Reader in) throws IOException
loadFromXML
in interface IXMLConfigurable
IOException
public void saveToXML(Writer out) throws IOException
saveToXML
in interface IXMLConfigurable
IOException
Copyright © 2014–2021 Norconex Inc.. All rights reserved.