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 ResourceFileLocationDB
IOException
public void init() throws IOException
IOException
public String[] nameToUrls(String name) throws IOException
nameToUrls
in interface ResourceFileLocationDB
name
- IOException
public void addNameUrl(String name, String url) throws IOException
addNameUrl
in interface ResourceFileLocationDB
name
- url
- IOException
public void removeNameUrl(String name, String url) throws IOException
removeNameUrl
in interface ResourceFileLocationDB
name
- url
- IOException
public org.archive.util.iterator.CloseableIterator<String> getNamesBetweenMarks(long start, long end) throws IOException
getNamesBetweenMarks
in interface ResourceFileLocationDB
start
- end
- IOException
public long getCurrentMark()
getCurrentMark
in interface ResourceFileLocationDB
public 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.