org.archive.wayback.resourcestore
Class LocationDBResourceStore
java.lang.Object
org.archive.wayback.resourcestore.LocationDBResourceStore
- All Implemented Interfaces:
- ResourceStore
public class LocationDBResourceStore
- extends Object
- implements ResourceStore
Simple ResourceStore implementation, which uses a ResourceFileLocationDB to
locate ARC/WARC files, that can be remote(via http://) or local paths.
- Version:
- $Date: 2010-09-29 05:28:38 +0700 (Wed, 29 Sep 2010) $, $Revision: 3262 $
- Author:
- brad
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LocationDBResourceStore
public LocationDBResourceStore()
retrieveResource
public Resource retrieveResource(CaptureSearchResult result)
throws ResourceNotAvailableException
- Description copied from interface:
ResourceStore
- Transform a CaptureSearchResult into a Resource
- Specified by:
retrieveResource in interface ResourceStore
- Parameters:
result - CaptureSearchResult which should be retrieved
- Returns:
- Resource object retrieved for the SearchResult
- Throws:
ResourceNotAvailableException - if the resource was unavailable
(down host, corrupted files, etc)
shutdown
public void shutdown()
throws IOException
- Description copied from interface:
ResourceStore
- Release any resources used by this ResourceIndex cleanly
- Specified by:
shutdown in interface ResourceStore
- Throws:
IOException - for usual causes
getDb
public ResourceFileLocationDB getDb()
- Returns:
- the ResourceFileLocationDB used by this ResourceStore
setDb
public void setDb(ResourceFileLocationDB db)
- Parameters:
db - the ResourceFileLocationDB to use with this ResourceStore
Copyright © 2005-2011 Internet Archive. All Rights Reserved.