org.archive.wayback.resourcestore.locationdb
Class BDBResourceFileLocationDB
java.lang.Object
org.archive.wayback.resourcestore.locationdb.BDBResourceFileLocationDB
- All Implemented Interfaces:
- ResourceFileLocationDB
public class BDBResourceFileLocationDB
- extends java.lang.Object
- implements ResourceFileLocationDB
- Version:
- $Date: 2008-08-08 16:02:29 -0700 (Fri, 08 Aug 2008) $, $Revision: 2528 $
- Author:
- brad
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BDBResourceFileLocationDB
public BDBResourceFileLocationDB()
shutdown
public void shutdown()
throws java.io.IOException
- Specified by:
shutdown in interface ResourceFileLocationDB
- Throws:
java.io.IOException
init
public void init()
throws java.io.IOException
- Throws:
java.io.IOException
nameToUrls
public java.lang.String[] nameToUrls(java.lang.String name)
throws java.io.IOException
- return an array of String URLs for all known locations of name in the DB.
- Specified by:
nameToUrls in interface ResourceFileLocationDB
- Parameters:
name -
- Returns:
- String[] of URLs to name
- Throws:
java.io.IOException
addNameUrl
public void addNameUrl(java.lang.String name,
java.lang.String url)
throws java.io.IOException
- add an url location for a name, unless it already exists
- Specified by:
addNameUrl in interface ResourceFileLocationDB
- Parameters:
name - url -
- Throws:
java.io.IOException
removeNameUrl
public void removeNameUrl(java.lang.String name,
java.lang.String url)
throws java.io.IOException
- remove a single url location for an name, if it exists
- Specified by:
removeNameUrl in interface ResourceFileLocationDB
- Parameters:
name - url -
- Throws:
java.io.IOException
getNamesBetweenMarks
public CloseableIterator<java.lang.String> getNamesBetweenMarks(long start,
long end)
throws java.io.IOException
- Specified by:
getNamesBetweenMarks in interface ResourceFileLocationDB
- Parameters:
start - end -
- Returns:
- Iterator for traversing arcs between start and end.
- Throws:
java.io.IOException
getCurrentMark
public long getCurrentMark()
- Specified by:
getCurrentMark in interface ResourceFileLocationDB
- Returns:
- current "Mark" for the log. Currently, it's just the length of
the log file.
getLogPath
public java.lang.String getLogPath()
- Returns:
- the logPath
setLogPath
public void setLogPath(java.lang.String logPath)
- Parameters:
logPath - the logPath to set
getBdbPath
public java.lang.String getBdbPath()
- Returns:
- the bdbPath
setBdbPath
public void setBdbPath(java.lang.String bdbPath)
- Parameters:
bdbPath - the bdbPath to set
getBdbName
public java.lang.String getBdbName()
- Returns:
- the bdbName
setBdbName
public void setBdbName(java.lang.String bdbName)
- Parameters:
bdbName - the bdbName to set
main
public static void main(java.lang.String[] args)
- Parameters:
args -
Copyright © 2005-2009 Internet Archive. All Rights Reserved.