org.archive.wayback.resourceindex.distributed
Class RangeMember

java.lang.Object
  extended by org.archive.wayback.resourceindex.distributed.RangeMember
All Implemented Interfaces:
ResourceIndex

public class RangeMember
extends Object
implements ResourceIndex

Version:
$Date: 2010-09-29 05:28:38 +0700 (Wed, 29 Sep 2010) $, $Revision: 3262 $
Author:
brad

Field Summary
protected static int UNUSABLE_WEIGHT
           
 
Constructor Summary
RangeMember()
           
 
Method Summary
 String getUrlBase()
           
protected  int getWeight()
           
protected  void noteConnectionFailure()
           
protected  void noteConnectionStart()
           
protected  void noteConnectionSuccess()
           
 SearchResults query(WaybackRequest wbRequest)
          Transform a WaybackRequest into a ResourceResults.
 void setUrlBase(String urlBase)
           
 void shutdown()
          Release any resources used by this ResourceIndex cleanly
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNUSABLE_WEIGHT

protected static int UNUSABLE_WEIGHT
Constructor Detail

RangeMember

public RangeMember()
Method Detail

getWeight

protected int getWeight()

noteConnectionStart

protected void noteConnectionStart()

noteConnectionSuccess

protected void noteConnectionSuccess()

noteConnectionFailure

protected void noteConnectionFailure()

query

public SearchResults query(WaybackRequest wbRequest)
                    throws ResourceIndexNotAvailableException,
                           ResourceNotInArchiveException,
                           BadQueryException,
                           AccessControlException
Description copied from interface: ResourceIndex
Transform a WaybackRequest into a ResourceResults.

Specified by:
query in interface ResourceIndex
Parameters:
wbRequest - WaybackRequest object from RequestParser
Returns:
SearchResults containing SearchResult objects matching the WaybackRequest
Throws:
ResourceIndexNotAvailableException - if the ResourceIndex is not available (remote host down, local files missing, etc)
ResourceNotInArchiveException - if the ResourceIndex could be contacted, but no SearchResult objects matched the request
BadQueryException - if the WaybackRequest is lacking information required to make a reasonable search of this ResourceIndex
AccessControlException - if SearchResult objects actually matched, but could not be returned due to AccessControl restrictions (robots.txt documents, Administrative URL blocks, etc)

getUrlBase

public String getUrlBase()
Returns:
Returns the urlBase.

setUrlBase

public void setUrlBase(String urlBase)
Parameters:
urlBase - the urlBase to set

shutdown

public void shutdown()
              throws IOException
Description copied from interface: ResourceIndex
Release any resources used by this ResourceIndex cleanly

Specified by:
shutdown in interface ResourceIndex
Throws:
IOException - for usual causes


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