public class RangeGroup extends Object implements ResourceIndex
Constructor and Description |
---|
RangeGroup(String name,
String start,
String end)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected RangeMember |
findBestMember() |
static Comparator<RangeGroup> |
getComparator() |
String |
getEnd() |
String |
getName() |
String |
getStart() |
SearchResults |
query(WaybackRequest wbRequest)
Transform a WaybackRequest into a ResourceResults.
|
void |
setMembers(String[] urls)
Update the list of members of this group.
|
void |
shutdown()
Release any resources used by this ResourceIndex cleanly
|
public void setMembers(String[] urls)
urls
- public SearchResults query(WaybackRequest wbRequest) throws ResourceIndexNotAvailableException, ResourceNotInArchiveException, BadQueryException, AccessControlException
ResourceIndex
query
in interface ResourceIndex
wbRequest
- 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)protected RangeMember findBestMember()
public String getEnd()
public String getName()
public String getStart()
public static Comparator<RangeGroup> getComparator()
public void shutdown() throws IOException
ResourceIndex
shutdown
in interface ResourceIndex
IOException
- for usual causesCopyright © 2005–2015 IIPC. All rights reserved.