- CachedRelayDescriptorReader - Class in org.torproject.collector.relaydescs
-
Parses all descriptors in local directory cacheddesc/ and sorts them
into directory structure in directory-archive/.
- CachedRelayDescriptorReader(RelayDescriptorParser, String[], File) - Constructor for class org.torproject.collector.relaydescs.CachedRelayDescriptorReader
-
Reads cached-descriptor files from one or more directories and
passes them to the given descriptor parser.
- check() - Method in class org.torproject.collector.relaydescs.ReferenceChecker
-
Checks references between descriptors, and if too many referenced
descriptors are missing, puts out a warning to the logs.
- checkAvailableSpace(Path) - Static method in class org.torproject.collector.cron.CollecTorMain
-
Checks the available space for the storage the given path is located on and
logs a warning, if 200 MiB or less are available, and otherwise logs
available space in TRACE level.
- cleanUpRsyncDirectory() - Method in class org.torproject.collector.bridgedescs.SanitizedBridgesWriter
-
Delete all files from the rsync directory that have not been modified
in the last three days, and remove the .tmp extension from newly
written files.
- cleanUpRsyncDirectory() - Method in class org.torproject.collector.exitlists.ExitListDownloader
-
Delete all files from the rsync directory that have not been modified
in the last three days.
- cleanUpRsyncDirectory() - Method in class org.torproject.collector.relaydescs.ArchiveWriter
-
Delete all files from the rsync directory that have not been modified
in the last three days (except for microdescriptors which are kept
for up to thirty days), and remove the .tmp extension from newly
written files.
- cleanUpRsyncDirectory() - Method in class org.torproject.collector.torperf.TorperfDownloader
-
Delete all files from the rsync directory that have not been modified
in the last three days.
- clear() - Method in class org.torproject.collector.conf.Configuration
-
clears all properties.
- CollecTorMain - Class in org.torproject.collector.cron
-
- CollecTorMain(Configuration) - Constructor for class org.torproject.collector.cron.CollecTorMain
-
- computeInitialDelayMillis(long, long, long) - Static method in class org.torproject.collector.cron.Scheduler
-
- CONF_FILE - Static variable in class org.torproject.collector.Main
-
- config - Variable in class org.torproject.collector.cron.CollecTorMain
-
- Configuration - Class in org.torproject.collector.conf
-
Initialize configuration with defaults from collector.properties,
unless a configuration properties file is available.
- Configuration() - Constructor for class org.torproject.collector.conf.Configuration
-
- ConfigurationException - Exception in org.torproject.collector.conf
-
- ConfigurationException() - Constructor for exception org.torproject.collector.conf.ConfigurationException
-
- ConfigurationException(String) - Constructor for exception org.torproject.collector.conf.ConfigurationException
-
- ConfigurationException(String, Exception) - Constructor for exception org.torproject.collector.conf.ConfigurationException
-
- CreateIndexJson - Class in org.torproject.collector.index
-
- CreateIndexJson(Configuration) - Constructor for class org.torproject.collector.index.CreateIndexJson
-
Creates indexes of directories containing archived and recent
descriptors and write index files to disk.
- sanitizeAndStoreExtraInfoDescriptor(byte[]) - Method in class org.torproject.collector.bridgedescs.SanitizedBridgesWriter
-
Sanitizes an extra-info descriptor and writes it to disk.
- sanitizeAndStoreNetworkStatus(byte[], String) - Method in class org.torproject.collector.bridgedescs.SanitizedBridgesWriter
-
Sanitizes a network status and writes it to disk.
- sanitizeAndStoreServerDescriptor(byte[]) - Method in class org.torproject.collector.bridgedescs.SanitizedBridgesWriter
-
Sanitizes a bridge server descriptor and writes it to disk.
- SanitizedBridgesWriter - Class in org.torproject.collector.bridgedescs
-
Sanitizes bridge descriptors, i.e., removes all possibly sensitive
information from them, and writes them to a local directory structure.
- SanitizedBridgesWriter(Configuration) - Constructor for class org.torproject.collector.bridgedescs.SanitizedBridgesWriter
-
- scheduleModuleRuns(Map<Key, Class<? extends CollecTorMain>>, Configuration) - Method in class org.torproject.collector.cron.Scheduler
-
Schedule all classes given according to the parameters in the
the configuration.
- Scheduler - Class in org.torproject.collector.cron
-
Scheduler that starts the modules configured in collector.properties.
- setArchiveReader(ArchiveReader) - Method in class org.torproject.collector.relaydescs.RelayDescriptorParser
-
- setProperty(String, String) - Method in class org.torproject.collector.conf.Configuration
-
Sets the value for key.
- setRelayDescriptorDownloader(RelayDescriptorDownloader) - Method in class org.torproject.collector.relaydescs.RelayDescriptorParser
-
- setWatchableSourceAndLoad(Path) - Method in class org.torproject.collector.conf.Configuration
-
Load the configuration from the given path and start monitoring changes.
- shutdownScheduler() - Method in class org.torproject.collector.cron.Scheduler
-
Try to shutdown smoothly, i.e., wait for running tasks to terminate.
- size() - Method in class org.torproject.collector.conf.Configuration
-
Count of properties.
- startProcessing() - Method in class org.torproject.collector.bridgedescs.SanitizedBridgesWriter
-
- startProcessing() - Method in class org.torproject.collector.cron.CollecTorMain
-
Module specific code goes here.
- startProcessing() - Method in class org.torproject.collector.exitlists.ExitListDownloader
-
- startProcessing() - Method in class org.torproject.collector.index.CreateIndexJson
-
- startProcessing() - Method in class org.torproject.collector.relaydescs.ArchiveWriter
-
- startProcessing() - Method in class org.torproject.collector.torperf.TorperfDownloader
-
- storeCertificate(byte[], String, long) - Method in class org.torproject.collector.relaydescs.ArchiveWriter
-
Stores a key certificate to disk.
- storeConsensus(byte[], long, SortedSet<String>, SortedSet<String>) - Method in class org.torproject.collector.relaydescs.ArchiveWriter
-
Stores a consensus to disk and adds all referenced votes and server
descriptors to the list of missing descriptors.
- storeExtraInfoDescriptor(byte[], String, long) - Method in class org.torproject.collector.relaydescs.ArchiveWriter
-
Stores an extra-info descriptor to disk.
- storeMicrodescConsensus(byte[], long, SortedSet<String>) - Method in class org.torproject.collector.relaydescs.ArchiveWriter
-
Stores a microdesc consensus to disk and adds all referenced
microdescriptors to the list of missing descriptors.
- storeMicrodescriptor(byte[], String, long) - Method in class org.torproject.collector.relaydescs.ArchiveWriter
-
Stores a microdescriptor to disk.
- storeMicrodescriptor(byte[], String, String, long) - Method in class org.torproject.collector.relaydescs.RelayDescriptorParser
-
Forwards the given microdescriptor to the archive writer to store
it to disk and tells the relay descriptor downloader that this
microdescriptor is not missing anymore.
- storeServerDescriptor(byte[], String, long, String) - Method in class org.torproject.collector.relaydescs.ArchiveWriter
-
Stores a server descriptor to disk and adds the referenced
extra-info descriptor to the list of missing descriptors.
- storeVote(byte[], long, String, String, SortedSet<String>) - Method in class org.torproject.collector.relaydescs.ArchiveWriter
-
Stores a vote to disk and adds all referenced server descriptors to
the list of missing descriptors.