Class NetarchiveCacheResourceStore

  • All Implemented Interfaces:
    org.archive.wayback.ResourceStore

    public class NetarchiveCacheResourceStore
    extends Object
    implements org.archive.wayback.ResourceStore
    This is the connector between netarchivesuite and wayback. And is based on the NetarchiveResourceStore, and the implementations of ResourceStore distributed with wayback-1.4.2.
    • Constructor Detail

      • NetarchiveCacheResourceStore

        public NetarchiveCacheResourceStore()
        Constructor. Initiates the caching mechanism.
    • Method Detail

      • retrieveResource

        public org.archive.wayback.core.Resource retrieveResource​(org.archive.wayback.core.CaptureSearchResult captureSearchResult)
                                                           throws org.archive.wayback.exception.ResourceNotAvailableException
        Transforms search result into a resource, according to the ResourceStore interface.
        Specified by:
        retrieveResource in interface org.archive.wayback.ResourceStore
        Parameters:
        captureSearchResult - the search result.
        Returns:
        a valid resource containing metadata and a link to the ARC or warc-record
        Throws:
        org.archive.wayback.exception.ResourceNotAvailableException - if something went wrong fetching the record.
      • shutdown

        public void shutdown()
                      throws IOException
        Shuts down this resource store, closing the arcrepository client.
        Specified by:
        shutdown in interface org.archive.wayback.ResourceStore
        Throws:
        IOException - if an exception ocurred while closing the client.