Skip navigation links
A B C D E F G H I K L M N O P R S T U V W 

A

ACTIVATED - Static variable in class org.torproject.collector.cron.Scheduler
 
ArchiveReader - Class in org.torproject.collector.relaydescs
Read in all files in a given directory and pass buffered readers of them to the relay descriptor parser.
ArchiveReader(RelayDescriptorParser, File, File, boolean) - Constructor for class org.torproject.collector.relaydescs.ArchiveReader
Reads all descriptors from the given directory, possibly using a parse history file, and passes them to the given descriptor parser.
ArchiveWriter - Class in org.torproject.collector.relaydescs
 
ArchiveWriter(Configuration) - Constructor for class org.torproject.collector.relaydescs.ArchiveWriter
Initialize an archive writer with a given configuration.
ARRAYSEP - Static variable in class org.torproject.collector.conf.Configuration
 

B

BridgeDescriptorParser - Class in org.torproject.collector.bridgedescs
 
BridgeDescriptorParser(SanitizedBridgesWriter) - Constructor for class org.torproject.collector.bridgedescs.BridgeDescriptorParser
Initializes a new bridge descriptor parser and links it to a sanitized bridges writer to sanitize and store bridge descriptors.
BridgeSnapshotReader - Class in org.torproject.collector.bridgedescs
 
BridgeSnapshotReader(BridgeDescriptorParser, File, File) - Constructor for class org.torproject.collector.bridgedescs.BridgeSnapshotReader
Reads the half-hourly snapshots of bridge descriptors from Tonga.

C

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.

D

downloadDescriptors() - Method in class org.torproject.collector.relaydescs.RelayDescriptorDownloader
Downloads missing descriptors that we think might still be available on the directory authorities as well as all server and extra-info descriptors once per day.

E

ExitListDownloader - Class in org.torproject.collector.exitlists
 
ExitListDownloader(Configuration) - Constructor for class org.torproject.collector.exitlists.ExitListDownloader
Instanciate the exit-lists module using the given configuration.

F

FIELDSEP - Static variable in class org.torproject.collector.conf.Configuration
 
finishWriting() - Method in class org.torproject.collector.bridgedescs.SanitizedBridgesWriter
Rewrite all network statuses that might contain references to server descriptors we added or updated in this execution.

G

getBool(Key) - Method in class org.torproject.collector.conf.Configuration
Returns a boolean property (case insensitiv), e.g.
getInstance() - Static method in class org.torproject.collector.cron.Scheduler
 
getInt(Key) - Method in class org.torproject.collector.conf.Configuration
Parse an integer property and translate the String "inf" into Integer.MAX_VALUE.
getPath(Key) - Method in class org.torproject.collector.conf.Configuration
Returns a Path property, e.g.
getPropertiesCopy() - Method in class org.torproject.collector.conf.Configuration
Return a copy of all properties.
getProperty(String) - Method in class org.torproject.collector.conf.Configuration
Retrieves the value for key.
getStringArray(Key) - Method in class org.torproject.collector.conf.Configuration
Returns String[] from a property.
getStringArrayArray(Key) - Method in class org.torproject.collector.conf.Configuration
Returns String[][] from a property.
getUrl(Key) - Method in class org.torproject.collector.conf.Configuration
Returns a URL property, e.g.

H

haveParsedConsensus(String, Set<String>, Set<String>) - Method in class org.torproject.collector.relaydescs.RelayDescriptorDownloader
We have parsed a consensus.
haveParsedExtraInfoDescriptor(String, String, String) - Method in class org.torproject.collector.relaydescs.RelayDescriptorDownloader
We have parsed an extra-info descriptor.
haveParsedMicrodescConsensus(String, SortedSet<String>) - Method in class org.torproject.collector.relaydescs.ArchiveReader
Stores the valid-after time and microdescriptor digests of a given microdesc consensus, so that microdescriptors (which don't contain a publication time) can later be sorted into the correct month folders.
haveParsedMicrodescConsensus(String, Set<String>) - Method in class org.torproject.collector.relaydescs.RelayDescriptorDownloader
We have parsed a microdesc consensus.
haveParsedMicrodescriptor(String) - Method in class org.torproject.collector.relaydescs.RelayDescriptorDownloader
We have parsed a microdescriptor.
haveParsedServerDescriptor(String, String, String, String) - Method in class org.torproject.collector.relaydescs.RelayDescriptorDownloader
We have parsed a server descriptor.
haveParsedVote(String, String, Set<String>) - Method in class org.torproject.collector.relaydescs.RelayDescriptorDownloader
We have parsed a vote.

I

intermediateStats(String) - Method in class org.torproject.collector.relaydescs.ArchiveWriter
Compiles a message with statistics on stored descriptors by type for later inclusion in the log and resets counters.

K

Key - Enum in org.torproject.collector.conf
Enum containing all the properties keys of the configuration.
keyClass() - Method in enum org.torproject.collector.conf.Key
 

L

load(InputStream) - Method in class org.torproject.collector.conf.Configuration
Loads properties from the given stream.

M

Main - Class in org.torproject.collector
Main class for starting a CollecTor instance.
Main() - Constructor for class org.torproject.collector.Main
 
main(String[]) - Static method in class org.torproject.collector.Main
At most one argument.
module() - Method in class org.torproject.collector.bridgedescs.SanitizedBridgesWriter
 
module() - Method in class org.torproject.collector.cron.CollecTorMain
Returns the module name for logging purposes.
module() - Method in class org.torproject.collector.exitlists.ExitListDownloader
 
module() - Method in class org.torproject.collector.index.CreateIndexJson
 
module() - Method in class org.torproject.collector.relaydescs.ArchiveWriter
 
module() - Method in class org.torproject.collector.torperf.TorperfDownloader
 

N

newThread(Runnable) - Method in class org.torproject.collector.cron.Scheduler
Provide a nice name for debugging and log thread creation.

O

OFFSETMIN - Static variable in class org.torproject.collector.cron.Scheduler
 
org.torproject.collector - package org.torproject.collector
 
org.torproject.collector.bridgedescs - package org.torproject.collector.bridgedescs
 
org.torproject.collector.conf - package org.torproject.collector.conf
 
org.torproject.collector.cron - package org.torproject.collector.cron
 
org.torproject.collector.exitlists - package org.torproject.collector.exitlists
 
org.torproject.collector.index - package org.torproject.collector.index
 
org.torproject.collector.relaydescs - package org.torproject.collector.relaydescs
 
org.torproject.collector.torperf - package org.torproject.collector.torperf
 

P

parse(byte[], String) - Method in class org.torproject.collector.bridgedescs.BridgeDescriptorParser
Parses the first line of the given descriptor data to determine the descriptor type and passes it to the sanitized bridges writer.
parse(byte[]) - Method in class org.torproject.collector.relaydescs.RelayDescriptorParser
Parses the given bytes to find out the contained descriptor type, forwards them to the archive writer to store them to disk, and tells the relay descriptor downloader and archive reader about the contained descriptor and all referenced descriptors.
PERIODMIN - Static variable in class org.torproject.collector.cron.Scheduler
 
putAll(Properties) - Method in class org.torproject.collector.conf.Configuration
Add all given properties.

R

ReferenceChecker - Class in org.torproject.collector.relaydescs
 
ReferenceChecker(File, File, File) - Constructor for class org.torproject.collector.relaydescs.ReferenceChecker
Initializes a reference checker using the given file paths.
RelayDescriptorDownloader - Class in org.torproject.collector.relaydescs
Downloads relay descriptors from the directory authorities via HTTP.
RelayDescriptorDownloader(RelayDescriptorParser, String[], String[], boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean) - Constructor for class org.torproject.collector.relaydescs.RelayDescriptorDownloader
Initializes this class, including reading in missing descriptors from stats/missing-relay-descriptors and the times when we last downloaded all server and extra-info descriptors from stats/last-downloaded-all-descriptors.
RelayDescriptorParser - Class in org.torproject.collector.relaydescs
Parses relay descriptors including network status consensuses and votes, server and extra-info descriptors, and passes the results to the stats handlers, to the archive writer, or to the relay descriptor downloader.
RelayDescriptorParser(ArchiveWriter) - Constructor for class org.torproject.collector.relaydescs.RelayDescriptorParser
Initializes this class.
run() - Method in class org.torproject.collector.cron.CollecTorMain
Log all errors preventing successful completion of the module.

S

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.

T

TorperfDownloader - Class in org.torproject.collector.torperf
 
TorperfDownloader(Configuration) - Constructor for class org.torproject.collector.torperf.TorperfDownloader
 

U

update(Observable, Object) - Method in class org.torproject.collector.cron.CollecTorMain
 

V

valueOf(String) - Static method in enum org.torproject.collector.conf.Key
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.torproject.collector.conf.Key
Returns an array containing the constants of this enum type, in the order they are declared.

W

writeFile() - Method in class org.torproject.collector.relaydescs.RelayDescriptorDownloader
Writes status files to disk and logs statistics about downloading relay descriptors in this execution.
A B C D E F G H I K L M N O P R S T U V W 
Skip navigation links
© 2016 The Tor Project