public class DescriptorIndexCollector extends java.lang.Object implements DescriptorCollector
| Constructor and Description |
|---|
DescriptorIndexCollector() |
| Modifier and Type | Method and Description |
|---|---|
void |
collectDescriptors(java.lang.String collecTorIndexUrl,
java.lang.String[] remoteDirectories,
long minLastModified,
java.io.File localDirectory,
boolean deleteExtraneousLocalFiles)
The parameter usage differs from the interface:
collecTorIndexUrl is expected to contain the URL
for an index JSON file (plain or compressed). |
public void collectDescriptors(java.lang.String collecTorIndexUrl,
java.lang.String[] remoteDirectories,
long minLastModified,
java.io.File localDirectory,
boolean deleteExtraneousLocalFiles)
collecTorIndexUrl is expected to contain the URL
for an index JSON file (plain or compressed).collectDescriptors in interface DescriptorCollectorcollecTorIndexUrl - CollecTor base URL without trailing slash,
e.g., "https://collector.torproject.org"remoteDirectories - Remote directories to collect descriptors
from, e.g.,
"/recent/relay-descriptors/server-descriptors/", without
processing subdirectories unless they are explicitly listedminLastModified - Minimum last-modified time in milliseconds of
files to be collected, or 0 for collecting all fileslocalDirectory - Directory where collected files will be writtendeleteExtraneousLocalFiles - Whether to delete all local files
that do not exist remotely anymore