public class BDBResourceFileLocationDB extends Object implements ResourceFileLocationDB
| Constructor and Description |
|---|
BDBResourceFileLocationDB() |
| Modifier and Type | Method and Description |
|---|---|
void |
addNameUrl(String name,
String url)
add an url location for a name, unless it already exists
|
String |
getBdbName() |
String |
getBdbPath() |
long |
getCurrentMark() |
String |
getLogPath() |
org.archive.util.iterator.CloseableIterator<String> |
getNamesBetweenMarks(long start,
long end) |
void |
init() |
static void |
main(String[] args) |
String[] |
nameToUrls(String name)
return an array of String URLs for all known locations of name in the DB.
|
void |
removeNameUrl(String name,
String url)
remove a single url location for an name, if it exists
|
void |
setBdbName(String bdbName) |
void |
setBdbPath(String bdbPath) |
void |
setLogPath(String logPath) |
void |
shutdown() |
public void shutdown()
throws IOException
shutdown in interface ResourceFileLocationDBIOExceptionpublic void init()
throws IOException
IOExceptionpublic String[] nameToUrls(String name) throws IOException
nameToUrls in interface ResourceFileLocationDBname - IOExceptionpublic void addNameUrl(String name, String url) throws IOException
addNameUrl in interface ResourceFileLocationDBname - url - IOExceptionpublic void removeNameUrl(String name, String url) throws IOException
removeNameUrl in interface ResourceFileLocationDBname - url - IOExceptionpublic org.archive.util.iterator.CloseableIterator<String> getNamesBetweenMarks(long start, long end) throws IOException
getNamesBetweenMarks in interface ResourceFileLocationDBstart - end - IOExceptionpublic long getCurrentMark()
getCurrentMark in interface ResourceFileLocationDBpublic String getLogPath()
public void setLogPath(String logPath)
logPath - the logPath to setpublic String getBdbPath()
public void setBdbPath(String bdbPath)
bdbPath - the bdbPath to setpublic String getBdbName()
public void setBdbName(String bdbName)
bdbName - the bdbName to setpublic static void main(String[] args)
args - Copyright © 2005–2015 IIPC. All rights reserved.