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$, $Revision$
- Author:
- brad
shutdown
void shutdown()
throws java.io.IOException
- Throws:
java.io.IOException
nameToUrls
java.lang.String[] nameToUrls(java.lang.String name)
throws java.io.IOException
- Throws:
java.io.IOException
addNameUrl
void addNameUrl(java.lang.String name,
java.lang.String url)
throws java.io.IOException
- Throws:
java.io.IOException
removeNameUrl
void removeNameUrl(java.lang.String name,
java.lang.String url)
throws java.io.IOException
- Throws:
java.io.IOException
getNamesBetweenMarks
CloseableIterator<java.lang.String> getNamesBetweenMarks(long start,
long end)
throws java.io.IOException
- Throws:
java.io.IOException
getCurrentMark
long getCurrentMark()
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2005-2009 Internet Archive. All Rights Reserved.