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 ResourceFileLocationDBIOExceptionpublic org.archive.util.iterator.CloseableIterator<String> getNamesBetweenMarks(long start, long end) throws IOException
getNamesBetweenMarks in interface ResourceFileLocationDBstart - end - 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 void shutdown()
throws IOException
shutdown in interface ResourceFileLocationDBIOExceptionpublic static void main(String[] args)
args - Copyright © 2005–2017 IIPC. All rights reserved.