org.supermind.crawl.scope
Class SizeConstrainedFLFilter

java.lang.Object
  extended by org.supermind.crawl.scope.SizeConstrainedFLFilter
All Implemented Interfaces:
ScopeFilter<FetchListScope.Input>

public class SizeConstrainedFLFilter
extends java.lang.Object
implements ScopeFilter<FetchListScope.Input>

Limits a crawl to a fixed number of pages.


Field Summary
 
Fields inherited from interface org.supermind.crawl.scope.ScopeFilter
ABSTAIN, ALLOW, REJECT
 
Constructor Summary
SizeConstrainedFLFilter()
           
 
Method Summary
 int filter(FetchListScope.Input input)
          Filter the input.
 void setMax(int max)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SizeConstrainedFLFilter

public SizeConstrainedFLFilter()
Method Detail

filter

public int filter(FetchListScope.Input input)
Description copied from interface: ScopeFilter
Filter the input. Possible return values are ScopeFilter.ALLOW, ScopeFilter.REJECT and ScopeFilter.ABSTAIN.

Specified by:
filter in interface ScopeFilter<FetchListScope.Input>
Returns:

setMax

public void setMax(int max)