org.archive.wayback.resourceindex.distributed
Class AlphaPartitionedIndex
java.lang.Object
org.archive.wayback.resourceindex.distributed.AlphaPartitionedIndex
- All Implemented Interfaces:
- ResourceIndex
public class AlphaPartitionedIndex
- extends java.lang.Object
- implements ResourceIndex
- Version:
- $Date$, $Revision$
- Author:
- brad
|
Field Summary |
static java.lang.String |
RANGE_CHECK_INTERVAL
config name for interval, in seconds, to check if the map file changed |
static java.lang.String |
RANGE_MAP_PATH
config name for path where map file is found |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RANGE_MAP_PATH
public static java.lang.String RANGE_MAP_PATH
- config name for path where map file is found
RANGE_CHECK_INTERVAL
public static java.lang.String RANGE_CHECK_INTERVAL
- config name for interval, in seconds, to check if the map file changed
AlphaPartitionedIndex
public AlphaPartitionedIndex()
getRangeGroupForRequest
protected RangeGroup getRangeGroupForRequest(WaybackRequest wbRequest)
throws BadQueryException,
ResourceIndexNotAvailableException
- Throws:
BadQueryException
ResourceIndexNotAvailableException
query
public SearchResults query(WaybackRequest wbRequest)
throws ResourceIndexNotAvailableException,
ResourceNotInArchiveException,
BadQueryException,
AccessControlException
- Description copied from interface:
ResourceIndex
- Transform a WMRequest into a ResourceResults.
- Specified by:
query in interface ResourceIndex
- Returns:
- ResourceResults containing ResourceResult objects matching the
WMRequest
- Throws:
ResourceIndexNotAvailableException
ResourceNotInArchiveException
BadQueryException
AccessControlException
canonicalize
public java.lang.String canonicalize(java.lang.String url)
throws org.apache.commons.httpclient.URIException
- Parameters:
url -
- Returns:
- canonicalized key version of url argument
- Throws:
org.apache.commons.httpclient.URIException
getCheckInterval
public long getCheckInterval()
- Returns:
- the checkInterval
setCheckInterval
public void setCheckInterval(long checkInterval)
- Parameters:
checkInterval - the checkInterval to set
getMapPath
public java.lang.String getMapPath()
- Returns:
- the mapPath
setMapPath
public void setMapPath(java.lang.String mapPath)
- Parameters:
mapPath - the mapPath to set
getCanonicalizer
public UrlCanonicalizer getCanonicalizer()
setCanonicalizer
public void setCanonicalizer(UrlCanonicalizer canonicalizer)
shutdown
public void shutdown()
throws java.io.IOException
- Specified by:
shutdown in interface ResourceIndex
- Throws:
java.io.IOException
Copyright © 2005-2009 Internet Archive. All Rights Reserved.