public class NetarchiveCacheResourceStore extends Object implements org.archive.wayback.ResourceStore
Constructor and Description |
---|
NetarchiveCacheResourceStore()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
org.archive.wayback.core.Resource |
retrieveResource(org.archive.wayback.core.CaptureSearchResult captureSearchResult)
Transforms search result into a resource, according to the ResourceStore interface.
|
void |
shutdown()
Shuts down this resource store, closing the arcrepository client.
|
public NetarchiveCacheResourceStore()
public org.archive.wayback.core.Resource retrieveResource(org.archive.wayback.core.CaptureSearchResult captureSearchResult) throws org.archive.wayback.exception.ResourceNotAvailableException
retrieveResource
in interface org.archive.wayback.ResourceStore
captureSearchResult
- the search result.org.archive.wayback.exception.ResourceNotAvailableException
- if something went wrong fetching the record.public void shutdown() throws IOException
shutdown
in interface org.archive.wayback.ResourceStore
IOException
- if an exception ocurred while closing the client.Copyright © 2005–2016 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.