public abstract class AbstractPersistProcessor extends Processor
Modifier and Type | Field and Description |
---|---|
protected boolean |
onlyStoreIfWriteTagPresent |
Constructor and Description |
---|
AbstractPersistProcessor() |
Modifier and Type | Method and Description |
---|---|
boolean |
getOnlyStoreIfWriteTagPresent() |
protected boolean |
hasWriteTag(CrawlURI uri) |
void |
setOnlyStoreIfWriteTagPresent(boolean onlyStoreIfWriteTagPresent) |
protected boolean |
shouldLoad(CrawlURI curi)
Whether the current CrawlURI's state should be loaded
|
protected boolean |
shouldStore(CrawlURI curi)
Whether the current CrawlURI's state should be persisted (to log or
direct to database)
|
doCheckpoint, finishCheckpoint, flattenVia, fromCheckpointJson, getBeanName, getEnabled, getKeyedProperties, getRecordedSize, getShouldProcessRule, getURICount, hasHttpAuthenticationCredential, innerProcess, innerProcessResult, innerRejectProcess, isRunning, isSuccess, process, report, setBeanName, setEnabled, setRecoveryCheckpoint, setShouldProcessRule, shouldProcess, start, startCheckpoint, stop, toCheckpointJson
public boolean getOnlyStoreIfWriteTagPresent()
public void setOnlyStoreIfWriteTagPresent(boolean onlyStoreIfWriteTagPresent)
protected boolean shouldStore(CrawlURI curi)
curi
- CrawlURIprotected boolean hasWriteTag(CrawlURI uri)
curi
- curi
has WRITE_TAG in the latest fetch history (i.e. this crawl).protected boolean shouldLoad(CrawlURI curi)
curi
- CrawlURICopyright © 2003-2014 Internet Archive. All Rights Reserved.