org.archive.crawler.frontier
Class HostQueuesFrontierMarker

java.lang.Object
  extended by org.archive.crawler.frontier.HostQueuesFrontierMarker
All Implemented Interfaces:
FrontierMarker

Deprecated. As of 1.4. No replacement.

public class HostQueuesFrontierMarker
extends java.lang.Object
implements FrontierMarker

An implementation of URIFrontierMarker suitable for the URIFrontier implementation in this package.

Author:
Kristinn Sigurdsson
See Also:
FrontierMarker, Frontier, HostQueuesFrontier

Field Summary
protected  long absolutePositionInCurrentQueue
          Deprecated.  
protected  int currentQueue
          Deprecated.  
protected  boolean hasNext
          Deprecated.  
protected  boolean inCacheOnly
          Deprecated.  
protected  java.util.ArrayList keyQueues
          Deprecated.  
(package private)  java.lang.String match
          Deprecated.  
protected  long nextItemNumber
          Deprecated.  
(package private)  java.util.regex.Pattern p
          Deprecated.  
 
Constructor Summary
HostQueuesFrontierMarker(java.lang.String match, boolean inCacheOnly, java.util.ArrayList keyqueues)
          Deprecated.  
 
Method Summary
 long getAbsolutePositionInCurrentQueue()
          Deprecated.  
 int getCurrentQueue()
          Deprecated.  
 java.util.ArrayList getKeyQueues()
          Deprecated.  
 java.lang.String getMatchExpression()
          Deprecated. Returns the regular expression that this marker uses.
 long getNextItemNumber()
          Deprecated. Returns the number of the next match after the marker.
 boolean hasNext()
          Deprecated. Returns false if no more URIs can be found matching the expression beyond those already covered.
 void incrementNextItemNumber()
          Deprecated. Increment next item number.
 boolean isInCacheOnly()
          Deprecated.  
 boolean match(CandidateURI caURI)
          Deprecated.  
 void nextQueue()
          Deprecated.  
 void setAbsolutePositionInCurrentQueue(long absolutePositionInCurrentQueue)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

match

java.lang.String match
Deprecated. 

p

java.util.regex.Pattern p
Deprecated. 

inCacheOnly

protected boolean inCacheOnly
Deprecated. 

hasNext

protected boolean hasNext
Deprecated. 

nextItemNumber

protected long nextItemNumber
Deprecated. 

keyQueues

protected java.util.ArrayList keyQueues
Deprecated. 

currentQueue

protected int currentQueue
Deprecated. 

absolutePositionInCurrentQueue

protected long absolutePositionInCurrentQueue
Deprecated. 
Constructor Detail

HostQueuesFrontierMarker

public HostQueuesFrontierMarker(java.lang.String match,
                                boolean inCacheOnly,
                                java.util.ArrayList keyqueues)
Deprecated. 
Method Detail

nextQueue

public void nextQueue()
Deprecated. 

match

public boolean match(CandidateURI caURI)
Deprecated. 

getNextItemNumber

public long getNextItemNumber()
Deprecated. 
Description copied from interface: FrontierMarker
Returns the number of the next match after the marker. Alternatively this can be viewed as n-1, where n is the number of items found before the marker.

Specified by:
getNextItemNumber in interface FrontierMarker
Returns:
the number of the next match after the marker

incrementNextItemNumber

public void incrementNextItemNumber()
Deprecated. 
Increment next item number.


getMatchExpression

public java.lang.String getMatchExpression()
Deprecated. 
Description copied from interface: FrontierMarker
Returns the regular expression that this marker uses.

Specified by:
getMatchExpression in interface FrontierMarker
Returns:
the regular expression that this marker uses

hasNext

public boolean hasNext()
Deprecated. 
Description copied from interface: FrontierMarker
Returns false if no more URIs can be found matching the expression beyond those already covered. True otherwise.

Specified by:
hasNext in interface FrontierMarker
Returns:
Are there any more matches.

getCurrentQueue

public int getCurrentQueue()
Deprecated. 
Returns:
Returns the currentQueue.

getKeyQueues

public java.util.ArrayList getKeyQueues()
Deprecated. 
Returns:
Returns the keyQueues.

getAbsolutePositionInCurrentQueue

public long getAbsolutePositionInCurrentQueue()
Deprecated. 
Returns:
Returns the absolutePositionInCurrentQueue.

isInCacheOnly

public boolean isInCacheOnly()
Deprecated. 
Returns:
Returns the inCacheOnly.

setAbsolutePositionInCurrentQueue

public void setAbsolutePositionInCurrentQueue(long absolutePositionInCurrentQueue)
Deprecated. 
Parameters:
absolutePositionInCurrentQueue - The absolutePositionInCurrentQueue to set.


Copyright © 2003-2005 Internet Archive. All Rights Reserved.