org.archive.wayback.resourcestore.locationdb
Interface ResourceFileLocationDB

All Known Implementing Classes:
BDBResourceFileLocationDB, FlatFileResourceFileLocationDB, RemoteResourceFileLocationDB

public interface ResourceFileLocationDB

Interface to a database that maps file key Strings to zero or more value Strings. Additionally, the database supports a "getCurrentMark" call that will return an long value. The results of two independent calls to getCurrentMark() can be passed to getNamesBetweenMarks() to retrieve an Iterator listing all key Strings added to the database between the two calls to getCurrentMark()

Version:
$Date: 2010-09-29 05:28:38 +0700 (Wed, 29 Sep 2010) $, $Revision: 3262 $
Author:
brad

Method Summary
 void addNameUrl(String name, String url)
           
 long getCurrentMark()
           
 CloseableIterator<String> getNamesBetweenMarks(long start, long end)
           
 String[] nameToUrls(String name)
           
 void removeNameUrl(String name, String url)
           
 void shutdown()
           
 

Method Detail

shutdown

void shutdown()
              throws IOException
Throws:
IOException

nameToUrls

String[] nameToUrls(String name)
                    throws IOException
Throws:
IOException

addNameUrl

void addNameUrl(String name,
                String url)
                throws IOException
Throws:
IOException

removeNameUrl

void removeNameUrl(String name,
                   String url)
                   throws IOException
Throws:
IOException

getNamesBetweenMarks

CloseableIterator<String> getNamesBetweenMarks(long start,
                                               long end)
                                               throws IOException
Throws:
IOException

getCurrentMark

long getCurrentMark()
                    throws IOException
Throws:
IOException


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