protected static class AccessPoint.SingleLoadResourceStore extends Object implements ResourceStore
ResourceNotAvailableException
if retrieval of the
archive has failed previously within the session.
It helps AccessPoint quickly scan through CaptureSearchResult
s
pointing the same archive as their revisit original.
It also collects performance stats.Constructor and Description |
---|
AccessPoint.SingleLoadResourceStore(ResourceStore realResourceStore) |
Modifier and Type | Method and Description |
---|---|
protected void |
addSkip(String filename) |
protected boolean |
isSkipped(String filename) |
Resource |
retrieveResource(CaptureSearchResult result)
Transform a CaptureSearchResult into a Resource
|
void |
shutdown()
Release any resources used by this ResourceIndex cleanly
|
public AccessPoint.SingleLoadResourceStore(ResourceStore realResourceStore)
protected void addSkip(String filename)
protected boolean isSkipped(String filename)
public Resource retrieveResource(CaptureSearchResult result) throws ResourceNotAvailableException
ResourceStore
retrieveResource
in interface ResourceStore
result
- CaptureSearchResult which should be retrievedResourceNotAvailableException
- if the resource was unavailable
(down host, corrupted files, etc)public void shutdown() throws IOException
ResourceStore
shutdown
in interface ResourceStore
IOException
- for usual causesCopyright © 2005–2015 IIPC. All rights reserved.