collectDescriptors
public void collectDescriptors(java.lang.String collecTorIndexUrlString,
java.lang.String[] remoteDirectories,
long minLastModified,
java.io.File localDirectory,
boolean deleteExtraneousLocalFiles)
If collecTorIndexUrlString
contains just the
base url, e.g. https://some.host.org, the path
/index/index.json
will be appended.
If a path is given (even just a final slash, e.g. https://some.host.org/),
the collecTorIndexUrlString
will be used as is.
- Specified by:
collectDescriptors
in interface DescriptorCollector
- Parameters:
collecTorIndexUrlString
- 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 listed
minLastModified
- Minimum last-modified time in milliseconds of
files to be collected, or 0 for collecting all files
localDirectory
- Directory where collected files will be written
deleteExtraneousLocalFiles
- Whether to delete all local files
that do not exist remotely anymore