org.archive.wayback.resourcestore
Class LocationDBResourceStore

java.lang.Object
  extended by org.archive.wayback.resourcestore.LocationDBResourceStore
All Implemented Interfaces:
ResourceStore

public class LocationDBResourceStore
extends java.lang.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$, $Revision$
Author:
brad

Constructor Summary
LocationDBResourceStore()
           
 
Method Summary
 ResourceFileLocationDB getDb()
           
 Resource retrieveResource(CaptureSearchResult result)
          Transform a SearchResult into a Resource
 void setDb(ResourceFileLocationDB db)
           
 void shutdown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocationDBResourceStore

public LocationDBResourceStore()
Method Detail

retrieveResource

public Resource retrieveResource(CaptureSearchResult result)
                          throws ResourceNotAvailableException
Description copied from interface: ResourceStore
Transform a SearchResult into a Resource

Specified by:
retrieveResource in interface ResourceStore
Returns:
Resource object retrieved for the SearchResult
Throws:
ResourceNotAvailableException

shutdown

public void shutdown()
              throws java.io.IOException
Specified by:
shutdown in interface ResourceStore
Throws:
java.io.IOException

getDb

public ResourceFileLocationDB getDb()

setDb

public void setDb(ResourceFileLocationDB db)


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