public class RangeMember extends Object implements ResourceIndex
| Modifier and Type | Field and Description |
|---|---|
protected static int |
UNUSABLE_WEIGHT |
| Constructor and Description |
|---|
RangeMember() |
| Modifier and Type | Method and Description |
|---|---|
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
|
String |
toString() |
protected int getWeight()
protected void noteConnectionStart()
protected void noteConnectionSuccess()
protected void noteConnectionFailure()
public SearchResults query(WaybackRequest wbRequest) throws ResourceIndexNotAvailableException, ResourceNotInArchiveException, BadQueryException, AccessControlException
ResourceIndexquery in interface ResourceIndexwbRequest - WaybackRequest object from RequestParserResourceIndexNotAvailableException - 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 requestBadQueryException - if the WaybackRequest is lacking information
required to make a reasonable search of this ResourceIndexAccessControlException - if SearchResult objects actually matched,
but could not be returned due to AccessControl restrictions
(robots.txt documents, Administrative URL blocks, etc)public String getUrlBase()
public void setUrlBase(String urlBase)
urlBase - the urlBase to setpublic void shutdown()
throws IOException
ResourceIndexshutdown in interface ResourceIndexIOException - for usual causesCopyright © 2005–2017 IIPC. All rights reserved.