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 CaptureSearchResults
pointing the same archive as their revisit original.
It also collects performance stats.| Constructor and Description |
|---|
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 SingleLoadResourceStore(ResourceStore realResourceStore)
protected void addSkip(String filename)
protected boolean isSkipped(String filename)
public Resource retrieveResource(CaptureSearchResult result) throws ResourceNotAvailableException
ResourceStoreretrieveResource in interface ResourceStoreresult - CaptureSearchResult which should be retrievedResourceNotAvailableException - if the resource was unavailable
(down host, corrupted files, etc)public void shutdown()
throws IOException
ResourceStoreshutdown in interface ResourceStoreIOException - for usual causesCopyright © 2005–2017 IIPC. All rights reserved.