public class RemoteResourceFileLocationDB extends Object implements ResourceFileLocationDB
Constructor and Description |
---|
RemoteResourceFileLocationDB(String serverUrl) |
Modifier and Type | Method and Description |
---|---|
void |
addNameUrl(String name,
String url)
add an Url location for an arcName, unless it already exists
|
long |
getCurrentMark() |
org.archive.util.iterator.CloseableIterator<String> |
getNamesBetweenMarks(long start,
long end) |
static void |
main(String[] args) |
String[] |
nameToUrls(String name)
return an array of String URLs for all known locations of the file
in the DB.
|
void |
removeNameUrl(String name,
String url)
remove a single url location for a name, if it exists
|
void |
shutdown() |
public RemoteResourceFileLocationDB(String serverUrl)
serverUrl
- public long getCurrentMark() throws IOException
getCurrentMark
in interface ResourceFileLocationDB
IOException
public org.archive.util.iterator.CloseableIterator<String> getNamesBetweenMarks(long start, long end) throws IOException
getNamesBetweenMarks
in interface ResourceFileLocationDB
start
- end
- 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 void shutdown() throws IOException
shutdown
in interface ResourceFileLocationDB
IOException
public static void main(String[] args)
args
- Copyright © 2005–2015 IIPC. All rights reserved.