| org.archive.crawler.settings.ModuleType org.archive.crawler.deciderules.DecideRule
All known Subclasses: org.archive.crawler.deciderules.ConfiguredDecideRule, org.archive.crawler.deciderules.BeanShellDecideRule, org.archive.crawler.deciderules.FilterDecideRule, org.archive.crawler.deciderules.AcceptDecideRule, org.archive.crawler.deciderules.DecideRuleSequence, org.archive.crawler.deciderules.RejectDecideRule,
Method Summary | |
public Object | decisionFor(Object object) Make decision on passed object .
Parameters: object - Object to rule on. | public CrawlController | getController() Get the controller object. | public void | kickUpdate() Respond to a settings update, refreshing any internal settings-derived
state.
This method gives implementors a chance to refresh internal state
after a settings change. | public Object | singlePossibleNonPassDecision(Object object) If this rule is "one-way" -- can only return a single
possible decision other than PASS -- return that
decision. |
DecideRule | public DecideRule(String name)(Code) | | Constructor.
Parameters: name - Name of this rule. |
getController | public CrawlController getController()(Code) | | Get the controller object.
the controller object. |
kickUpdate | public void kickUpdate()(Code) | | Respond to a settings update, refreshing any internal settings-derived
state.
This method gives implementors a chance to refresh internal state
after a settings change. Normally new settings are picked up w/o
the need of work on the part of settings' clients but some facilities
-- for example, Surt classes need to sort submissions into
common-prefix-coalesced collection of Surt prefixes, or,
settings changes that alter external file or seeds/directives
references -- need to be flagged so they can take
compensatory action.
|
singlePossibleNonPassDecision | public Object singlePossibleNonPassDecision(Object object)(Code) | | If this rule is "one-way" -- can only return a single
possible decision other than PASS -- return that
decision. Otherwise return null. Most rules will be
one-way.
Parameters: object - the one decision other than PASS this rule mightreturn, if there is only one |
|
|