public interface ISpoiledReferenceStrategizer
Decides which strategy to adopt for a given reference with a bad state. Those can either be deleted (asking the committer to remove them from a target repository), they can be ignored (no action is taken), or graced (give is one chance to recover on a subsequent run).
A "bad" state is any state but
UNMODIFIED. These statuses never have to be resolved.
A complete list of statuses can be obtained from
or a subclass.
In addition to "good" states, it is possible for some states to be temporary and/or to be specific to some collectors, and to never be passed to this class.
SpoiledReferenceStrategy resolveSpoiledReferenceStrategy(String reference, CrawlState state)
reference- a document reference
state- the reference crawl state to evaluate
Copyright © 2014–2021 Norconex Inc.. All rights reserved.