org.archive.crawler.frontier
Class TopmostAssignedSurtQueueAssignmentPolicy

java.lang.Object
  extended by org.archive.crawler.frontier.QueueAssignmentPolicy
      extended by org.archive.crawler.frontier.SurtAuthorityQueueAssignmentPolicy
          extended by org.archive.crawler.frontier.TopmostAssignedSurtQueueAssignmentPolicy

public class TopmostAssignedSurtQueueAssignmentPolicy
extends SurtAuthorityQueueAssignmentPolicy

Create a queueKey based on the SURT authority, reduced to the public-suffix-plus-one domain (topmost assignable domain).

Author:
gojomo

Constructor Summary
TopmostAssignedSurtQueueAssignmentPolicy()
           
 
Method Summary
 java.lang.String getClassKey(CrawlController controller, CandidateURI cauri)
          Get the String key (name) of the queue to which the CrawlURI should be assigned.
 
Methods inherited from class org.archive.crawler.frontier.SurtAuthorityQueueAssignmentPolicy
getSurtAuthority
 
Methods inherited from class org.archive.crawler.frontier.QueueAssignmentPolicy
maximumNumberOfKeys
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TopmostAssignedSurtQueueAssignmentPolicy

public TopmostAssignedSurtQueueAssignmentPolicy()
Method Detail

getClassKey

public java.lang.String getClassKey(CrawlController controller,
                                    CandidateURI cauri)
Description copied from class: QueueAssignmentPolicy
Get the String key (name) of the queue to which the CrawlURI should be assigned. Note that changes to the CrawlURI, or its associated components (such as CrawlServer), may change its queue assignment.

Overrides:
getClassKey in class SurtAuthorityQueueAssignmentPolicy
Parameters:
controller - This crawls' controller.
cauri - CandidateURI to calculate class key for.
Returns:
the String key of the queue to assign the CrawlURI


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