A B C D E F G H I K L M N O P R S T U V W
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- ACTIVATED - Static variable in class org.torproject.metrics.collector.cron.Scheduler
- add(LogMetadata) - Method in class org.torproject.metrics.collector.webstats.LogFileMap
-
Add log metadata to the map structure.
- annotation - Variable in class org.torproject.metrics.collector.persist.DescriptorPersistence
- Annotation - Enum in org.torproject.metrics.collector.conf
-
This enum contains all currently valid descriptor annotations.
- applies(Descriptor) - Method in class org.torproject.metrics.collector.sync.ProcessCriterium
-
Only process descriptors with the appropriate type.
- applies(T) - Method in interface org.torproject.metrics.collector.sync.Criterium
-
Determine, if the given object of type T fulfills the Criterium.
- ArchivePath - org.torproject.metrics.collector.conf.Key
- ArchiveReader - Class in org.torproject.metrics.collector.relaydescs
-
Read in all files in a given directory and pass buffered readers of them to the relay descriptor parser.
- ArchiveWriter - Class in org.torproject.metrics.collector.relaydescs
- ArchiveWriter(Configuration) - Constructor for class org.torproject.metrics.collector.relaydescs.ArchiveWriter
-
Initialize an archive writer with a given configuration.
- ARRAYSEP - Static variable in class org.torproject.metrics.collector.conf.Configuration
B
- BandwidthFile - org.torproject.metrics.collector.conf.Annotation
- BandwidthFilePersistence - Class in org.torproject.metrics.collector.persist
- BandwidthFilePersistence(BandwidthFile) - Constructor for class org.torproject.metrics.collector.persist.BandwidthFilePersistence
- BridgeDescriptorMappingsLimit - org.torproject.metrics.collector.conf.Key
- BridgeDescriptorParser - Class in org.torproject.metrics.collector.bridgedescs
- BridgeDescriptorParser(SanitizedBridgesWriter) - Constructor for class org.torproject.metrics.collector.bridgedescs.BridgeDescriptorParser
-
Initializes a new bridge descriptor parser and links it to a sanitized bridges writer to sanitize and store bridge descriptors.
- BRIDGEDESCS - Static variable in class org.torproject.metrics.collector.persist.DescriptorPersistence
- BridgedescsActivated - org.torproject.metrics.collector.conf.Key
- BridgedescsOffsetMinutes - org.torproject.metrics.collector.conf.Key
- BridgedescsPeriodMinutes - org.torproject.metrics.collector.conf.Key
- BridgeExtraInfo - org.torproject.metrics.collector.conf.Annotation
- BridgeExtraInfoPersistence - Class in org.torproject.metrics.collector.persist
- BridgeExtraInfoPersistence(BridgeExtraInfoDescriptor, long) - Constructor for class org.torproject.metrics.collector.persist.BridgeExtraInfoPersistence
- BridgeLocalOrigins - org.torproject.metrics.collector.conf.Key
- BridgePoolAssignment - org.torproject.metrics.collector.conf.Annotation
- BridgePoolAssignmentPersistence - Class in org.torproject.metrics.collector.persist
- BridgePoolAssignmentPersistence(BridgePoolAssignment) - Constructor for class org.torproject.metrics.collector.persist.BridgePoolAssignmentPersistence
- BRIDGEPOOLASSIGNMENTS - Static variable in class org.torproject.metrics.collector.persist.DescriptorPersistence
- BridgePoolAssignmentsActivated - org.torproject.metrics.collector.conf.Key
- BridgePoolAssignmentsLocalOrigins - org.torproject.metrics.collector.conf.Key
- BridgePoolAssignmentsOffsetMinutes - org.torproject.metrics.collector.conf.Key
- BridgePoolAssignmentsPeriodMinutes - org.torproject.metrics.collector.conf.Key
- BridgePoolAssignmentsProcessor - Class in org.torproject.metrics.collector.bridgepools
- BridgePoolAssignmentsProcessor(Configuration) - Constructor for class org.torproject.metrics.collector.bridgepools.BridgePoolAssignmentsProcessor
-
Initialize this class with the given configuration.
- BridgePoolAssignmentsSources - org.torproject.metrics.collector.conf.Key
- BridgePoolAssignmentsSyncOrigins - org.torproject.metrics.collector.conf.Key
- BridgeServer - org.torproject.metrics.collector.conf.Annotation
- BridgeServerDescriptorPersistence - Class in org.torproject.metrics.collector.persist
- BridgeServerDescriptorPersistence(BridgeServerDescriptor, long) - Constructor for class org.torproject.metrics.collector.persist.BridgeServerDescriptorPersistence
- BridgeSnapshotReader - Class in org.torproject.metrics.collector.bridgedescs
- BridgeSnapshotReader(BridgeDescriptorParser, File, File) - Constructor for class org.torproject.metrics.collector.bridgedescs.BridgeSnapshotReader
-
Reads the half-hourly snapshots of bridge descriptors from Bifroest.
- BridgeSources - org.torproject.metrics.collector.conf.Key
- BridgeSyncOrigins - org.torproject.metrics.collector.conf.Key
- bytes() - Method in enum org.torproject.metrics.collector.conf.Annotation
- bytesFor(String, long) - Static method in class org.torproject.metrics.collector.webstats.SanitizeWeblogs
C
- Cache - org.torproject.metrics.collector.conf.SourceType
- CachedRelayDescriptorReader - Class in org.torproject.metrics.collector.relaydescs
-
Parses all descriptors in local directory cacheddesc/ and sorts them into directory structure in directory-archive/.
- call() - Method in class org.torproject.metrics.collector.cron.CollecTorMain
-
Wrapper for
run
. - Cert - org.torproject.metrics.collector.conf.Annotation
- check() - Method in class org.torproject.metrics.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.metrics.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.
- cleanDirectory() - Method in class org.torproject.metrics.collector.sync.SyncPersistence
-
Cleans the directory in
RecentPath
after storing descriptors. - cleanDirectory(Path) - Static method in class org.torproject.metrics.collector.persist.PersistenceUtils
-
Move temporary files to their final location.
- cleanDirectory(Path, long) - Static method in class org.torproject.metrics.collector.persist.PersistenceUtils
-
Clean up the given directory by deleting files that are older than the given cut-off timestamp, and by moving temporary files to their final location.
- cleanUpRsyncDirectory() - Method in class org.torproject.metrics.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.metrics.collector.bridgepools.BridgePoolAssignmentsProcessor
-
Delete all files from the rsync directory that have not been modified in the last three days.
- cleanUpRsyncDirectory() - Method in class org.torproject.metrics.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.metrics.collector.onionperf.OnionPerfDownloader
-
Delete all files from the rsync directory that have not been modified in the last three days.
- cleanUpRsyncDirectory() - Method in class org.torproject.metrics.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.metrics.collector.snowflake.SnowflakeStatsDownloader
-
Delete all files from the rsync directory that have not been modified in the last three days.
- clear() - Method in class org.torproject.metrics.collector.conf.Configuration
-
clears all properties.
- CollecTorMain - Class in org.torproject.metrics.collector.cron
- CollecTorMain(Configuration) - Constructor for class org.torproject.metrics.collector.cron.CollecTorMain
- COMPRESSION - Static variable in class org.torproject.metrics.collector.persist.WebServerAccessLogPersistence
- CompressRelayDescriptorDownloads - org.torproject.metrics.collector.conf.Key
- computeInitialDelayMillis(long, long, long) - Static method in class org.torproject.metrics.collector.cron.Scheduler
- CONF_FILE - Static variable in class org.torproject.metrics.collector.Main
- config - Variable in class org.torproject.metrics.collector.cron.CollecTorMain
- Configuration - Class in org.torproject.metrics.collector.conf
-
Initialize configuration with defaults from collector.properties, unless a configuration properties file is available.
- Configuration() - Constructor for class org.torproject.metrics.collector.conf.Configuration
- ConfigurationException - Exception in org.torproject.metrics.collector.conf
- ConfigurationException() - Constructor for exception org.torproject.metrics.collector.conf.ConfigurationException
- ConfigurationException(String) - Constructor for exception org.torproject.metrics.collector.conf.ConfigurationException
- ConfigurationException(String, Exception) - Constructor for exception org.torproject.metrics.collector.conf.ConfigurationException
- Consensus - org.torproject.metrics.collector.conf.Annotation
- ConsensusPersistence - Class in org.torproject.metrics.collector.persist
- ConsensusPersistence(RelayNetworkStatusConsensus, long) - Constructor for class org.torproject.metrics.collector.persist.ConsensusPersistence
-
Initialize with appropriate annotation and given parameters.
- ContribPath - org.torproject.metrics.collector.conf.Key
- create(Path) - Static method in class org.torproject.metrics.collector.webstats.LogMetadata
-
Only way to create a LogMetadata object from a given log path.
- CreateIndexJson - Class in org.torproject.metrics.collector.indexer
- CreateIndexJson(Configuration) - Constructor for class org.torproject.metrics.collector.indexer.CreateIndexJson
-
Creates indexes of directories containing archived and recent descriptors and write index files to disk.
- Criterium<T> - Interface in org.torproject.metrics.collector.sync
-
Interface for decisions to be made in the sync-process.
D
- DASH - Static variable in class org.torproject.metrics.collector.persist.DescriptorPersistence
- date - Variable in class org.torproject.metrics.collector.webstats.LogMetadata
-
The date the log entries were created.
- dateTime(long) - Static method in class org.torproject.metrics.collector.persist.PersistenceUtils
-
Return all date-time as string.
- dateTime(Date) - Static method in class org.torproject.metrics.collector.persist.PersistenceUtils
-
Return all date-time as string.
- dateTimeParts(long) - Static method in class org.torproject.metrics.collector.persist.PersistenceUtils
-
Return all date-time parts as array.
- dateTimeParts(Date) - Static method in class org.torproject.metrics.collector.persist.PersistenceUtils
-
Return all date-time parts as array.
- desc - Variable in class org.torproject.metrics.collector.persist.DescriptorPersistence
- DescriptorPersistence<T extends org.torproject.descriptor.Descriptor> - Class in org.torproject.metrics.collector.persist
- DescriptorPersistence(T, byte[]) - Constructor for class org.torproject.metrics.collector.persist.DescriptorPersistence
-
Initializes the paths for storing descriptors of type
T
. - DirectoryAuthoritiesAddresses - org.torproject.metrics.collector.conf.Key
- DirectoryAuthoritiesFingerprintsForVotes - org.torproject.metrics.collector.conf.Key
- DOT - Static variable in class org.torproject.metrics.collector.persist.DescriptorPersistence
- DownloadAllExtraInfoDescriptors - org.torproject.metrics.collector.conf.Key
- DownloadAllServerDescriptors - org.torproject.metrics.collector.conf.Key
- downloadDescriptors() - Method in class org.torproject.metrics.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
- ExitList - org.torproject.metrics.collector.conf.Annotation
- ExitListDownloader - Class in org.torproject.metrics.collector.exitlists
- ExitListDownloader(Configuration) - Constructor for class org.torproject.metrics.collector.exitlists.ExitListDownloader
-
Instantiate the exit-lists module using the given configuration.
- ExitlistPersistence - Class in org.torproject.metrics.collector.persist
- ExitlistPersistence(ExitList, long) - Constructor for class org.torproject.metrics.collector.persist.ExitlistPersistence
- ExitlistsActivated - org.torproject.metrics.collector.conf.Key
- ExitlistsOffsetMinutes - org.torproject.metrics.collector.conf.Key
- ExitlistSources - org.torproject.metrics.collector.conf.Key
- ExitlistsPeriodMinutes - org.torproject.metrics.collector.conf.Key
- ExitlistSyncOrigins - org.torproject.metrics.collector.conf.Key
- ExitlistUrl - org.torproject.metrics.collector.conf.Key
- EXTRA_INFO - Static variable in class org.torproject.metrics.collector.persist.DescriptorPersistence
- EXTRA_INFOS - Static variable in class org.torproject.metrics.collector.persist.DescriptorPersistence
- ExtraInfo - org.torproject.metrics.collector.conf.Annotation
- ExtraInfoPersistence - Class in org.torproject.metrics.collector.persist
- ExtraInfoPersistence(RelayExtraInfoDescriptor, long) - Constructor for class org.torproject.metrics.collector.persist.ExtraInfoPersistence
F
- FIELDSEP - Static variable in class org.torproject.metrics.collector.conf.Configuration
- filenamePattern - Static variable in class org.torproject.metrics.collector.webstats.LogMetadata
-
The mandatory web server log descriptor file name pattern.
- fileType - Variable in class org.torproject.metrics.collector.webstats.LogMetadata
-
The log's compression type.
- finishWriting() - Method in class org.torproject.metrics.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.metrics.collector.conf.Configuration
-
Returns a
boolean
property (case insensitiv), e.g. - getInstance() - Static method in class org.torproject.metrics.collector.cron.Scheduler
- getInt(Key) - Method in class org.torproject.metrics.collector.conf.Configuration
-
Parse an integer property and translate the String
"inf"
into Integer.MAX_VALUE. - getLong(Key) - Method in class org.torproject.metrics.collector.conf.Configuration
-
Parse a long property.
- getPath(Key) - Method in class org.torproject.metrics.collector.conf.Configuration
-
Returns a
Path
property, e.g. - getPropertiesCopy() - Method in class org.torproject.metrics.collector.conf.Configuration
-
Return a copy of all properties.
- getProperty(String) - Method in class org.torproject.metrics.collector.conf.Configuration
-
Retrieves the value for key.
- getProperty(String, String) - Method in class org.torproject.metrics.collector.conf.Configuration
-
Retrieves the value for key returning a default for non-existing keys.
- getRecentPath() - Method in class org.torproject.metrics.collector.persist.DescriptorPersistence
-
Return the final location for 'recent' descriptors.
- getSourceTypeSet(Key) - Method in class org.torproject.metrics.collector.conf.Configuration
-
Returns a
SourceType
as List, e.g. - getStoragePath() - Method in class org.torproject.metrics.collector.persist.DescriptorPersistence
-
Return the final storage location inside storage.
- getStringArray(Key) - Method in class org.torproject.metrics.collector.conf.Configuration
-
Returns
String[]
from a property. - getStringArrayArray(Key) - Method in class org.torproject.metrics.collector.conf.Configuration
-
Returns
String[][]
from a property. - getUrl(Key) - Method in class org.torproject.metrics.collector.conf.Configuration
-
Returns a
URL
property, e.g. - getUrlArray(Key) - Method in class org.torproject.metrics.collector.conf.Configuration
-
Returns
URL[]
from a property.
H
- has(String) - Static method in enum org.torproject.metrics.collector.conf.Key
-
Verifies, if the given string corresponds to an enum value.
- haveParsedConsensus(String, Set<String>, Set<String>) - Method in class org.torproject.metrics.collector.relaydescs.RelayDescriptorDownloader
-
We have parsed a consensus.
- haveParsedExtraInfoDescriptor(String, String, String) - Method in class org.torproject.metrics.collector.relaydescs.RelayDescriptorDownloader
-
We have parsed an extra-info descriptor.
- haveParsedMicrodescConsensus(String, Set<String>) - Method in class org.torproject.metrics.collector.relaydescs.RelayDescriptorDownloader
-
We have parsed a microdesc consensus.
- haveParsedMicrodescriptor(String) - Method in class org.torproject.metrics.collector.relaydescs.RelayDescriptorDownloader
-
We have parsed a microdescriptor.
- haveParsedServerDescriptor(String, String, String, String) - Method in class org.torproject.metrics.collector.relaydescs.RelayDescriptorDownloader
-
We have parsed a server descriptor.
- haveParsedVote(String, String, Set<String>) - Method in class org.torproject.metrics.collector.relaydescs.RelayDescriptorDownloader
-
We have parsed a vote.
I
- IndexPath - org.torproject.metrics.collector.conf.Key
- InstanceBaseUrl - org.torproject.metrics.collector.conf.Key
- intermediateStats(String) - Method in class org.torproject.metrics.collector.relaydescs.ArchiveWriter
-
Compiles a message with statistics on stored descriptors by type for later inclusion in the log and resets counters.
K
- KeepDirectoryArchiveImportHistory - org.torproject.metrics.collector.conf.Key
- Key - Enum in org.torproject.metrics.collector.conf
-
Enum containing all the properties keys of the configuration.
- keyClass() - Method in enum org.torproject.metrics.collector.conf.Key
L
- load(InputStream) - Method in class org.torproject.metrics.collector.conf.Configuration
-
Loads properties from the given stream.
- Local - org.torproject.metrics.collector.conf.SourceType
- log - Static variable in class org.torproject.metrics.collector.persist.DescriptorPersistence
- LogFileMap - Class in org.torproject.metrics.collector.webstats
-
Processes the given path and stores metadata for log files.
- LogFileMap(Path) - Constructor for class org.torproject.metrics.collector.webstats.LogFileMap
-
The map to keep track of the logfiles by virtual host, physical host, and date.
- LogMetadata - Class in org.torproject.metrics.collector.webstats
M
- main(String[]) - Static method in class org.torproject.metrics.collector.Main
-
At most one argument.
- Main - Class in org.torproject.metrics.collector
-
Main class for starting a CollecTor instance.
- Main() - Constructor for class org.torproject.metrics.collector.Main
- mapPathDescriptors - Variable in class org.torproject.metrics.collector.cron.CollecTorMain
- merge(Configuration, String, Map<String, Class<? extends Descriptor>>) - Method in class org.torproject.metrics.collector.sync.SyncManager
-
Merges the synced files to recent and out storage.
- metadataStream() - Method in class org.torproject.metrics.collector.webstats.LogFileMap
-
Returns a stream of all contained log metadata.
- MicroConsensus - org.torproject.metrics.collector.conf.Annotation
- MicroConsensusPersistence - Class in org.torproject.metrics.collector.persist
- MicroConsensusPersistence(RelayNetworkStatusConsensus, long) - Constructor for class org.torproject.metrics.collector.persist.MicroConsensusPersistence
-
Initialize with appropriate annotation and given parameters.
- MICRODESC - Static variable in class org.torproject.metrics.collector.persist.DescriptorPersistence
- Microdescriptor - org.torproject.metrics.collector.conf.Annotation
- MICRODESCS - Static variable in class org.torproject.metrics.collector.persist.DescriptorPersistence
- module() - Method in class org.torproject.metrics.collector.bridgedescs.SanitizedBridgesWriter
- module() - Method in class org.torproject.metrics.collector.bridgepools.BridgePoolAssignmentsProcessor
-
Return the module identifier.
- module() - Method in class org.torproject.metrics.collector.cron.CollecTorMain
-
Returns the module name for logging purposes.
- module() - Method in class org.torproject.metrics.collector.exitlists.ExitListDownloader
- module() - Method in class org.torproject.metrics.collector.indexer.CreateIndexJson
- module() - Method in class org.torproject.metrics.collector.onionperf.OnionPerfDownloader
- module() - Method in class org.torproject.metrics.collector.relaydescs.ArchiveWriter
- module() - Method in class org.torproject.metrics.collector.snowflake.SnowflakeStatsDownloader
- module() - Method in class org.torproject.metrics.collector.webstats.SanitizeWeblogs
N
- newThread(Runnable) - Method in class org.torproject.metrics.collector.cron.Scheduler
-
Provide a nice name for debugging and log thread creation.
- nextDayLogFor(LogMetadata) - Method in class org.torproject.metrics.collector.webstats.LogFileMap
-
Takes the given metadata and returns the LogMetadata for the entry of the next day.
O
- OFFSETMIN - Static variable in class org.torproject.metrics.collector.cron.Scheduler
- OnionPerf - org.torproject.metrics.collector.conf.Annotation
- OnionPerfActivated - org.torproject.metrics.collector.conf.Key
- OnionPerfDownloader - Class in org.torproject.metrics.collector.onionperf
-
Download download .tpf files from OnionPerf hosts.
- OnionPerfDownloader(Configuration) - Constructor for class org.torproject.metrics.collector.onionperf.OnionPerfDownloader
-
Instantiate the OnionPerf module using the given configuration.
- OnionPerfHosts - org.torproject.metrics.collector.conf.Key
- OnionPerfOffsetMinutes - org.torproject.metrics.collector.conf.Key
- OnionPerfPeriodMinutes - org.torproject.metrics.collector.conf.Key
- OnionPerfPersistence - Class in org.torproject.metrics.collector.persist
- OnionPerfPersistence(TorperfResult) - Constructor for class org.torproject.metrics.collector.persist.OnionPerfPersistence
- OnionPerfSources - org.torproject.metrics.collector.conf.Key
- OnionPerfSyncOrigins - org.torproject.metrics.collector.conf.Key
- org.torproject.metrics.collector - package org.torproject.metrics.collector
- org.torproject.metrics.collector.bridgedescs - package org.torproject.metrics.collector.bridgedescs
- org.torproject.metrics.collector.bridgepools - package org.torproject.metrics.collector.bridgepools
- org.torproject.metrics.collector.conf - package org.torproject.metrics.collector.conf
- org.torproject.metrics.collector.cron - package org.torproject.metrics.collector.cron
- org.torproject.metrics.collector.exitlists - package org.torproject.metrics.collector.exitlists
- org.torproject.metrics.collector.indexer - package org.torproject.metrics.collector.indexer
- org.torproject.metrics.collector.onionperf - package org.torproject.metrics.collector.onionperf
- org.torproject.metrics.collector.persist - package org.torproject.metrics.collector.persist
- org.torproject.metrics.collector.relaydescs - package org.torproject.metrics.collector.relaydescs
- org.torproject.metrics.collector.snowflake - package org.torproject.metrics.collector.snowflake
- org.torproject.metrics.collector.sync - package org.torproject.metrics.collector.sync
- org.torproject.metrics.collector.webstats - package org.torproject.metrics.collector.webstats
- OutputPath - org.torproject.metrics.collector.conf.Key
P
- parse(byte[], File) - Method in class org.torproject.metrics.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.
- parse(byte[], String, String) - Method in class org.torproject.metrics.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.
- path - Variable in class org.torproject.metrics.collector.webstats.LogMetadata
-
The path of the log file to be imported.
- PERIODMIN - Static variable in class org.torproject.metrics.collector.cron.Scheduler
- PersistenceUtils - Class in org.torproject.metrics.collector.persist
- PersistenceUtils() - Constructor for class org.torproject.metrics.collector.persist.PersistenceUtils
- physicalHost - Variable in class org.torproject.metrics.collector.webstats.LogMetadata
-
The name of the physical host.
- ProcessCriterium - Class in org.torproject.metrics.collector.sync
-
Should a descriptor file be processed during sync.
- ProcessCriterium(Class<? extends Descriptor>) - Constructor for class org.torproject.metrics.collector.sync.ProcessCriterium
- putAll(Properties) - Method in class org.torproject.metrics.collector.conf.Configuration
-
Add all given properties.
R
- readDescriptors() - Method in class org.torproject.metrics.collector.relaydescs.ArchiveReader
-
Reads all descriptors from the given directory, possibly using a parse history file, and passes them to the given descriptor parser.
- readDescriptors() - Method in class org.torproject.metrics.collector.relaydescs.CachedRelayDescriptorReader
-
Reads cached-descriptor files from one or more directories and passes them to the given descriptor parser.
- recentPath - Variable in class org.torproject.metrics.collector.persist.DescriptorPersistence
- RecentPath - org.torproject.metrics.collector.conf.Key
- ReferenceChecker - Class in org.torproject.metrics.collector.relaydescs
- ReferenceChecker(File, File, File) - Constructor for class org.torproject.metrics.collector.relaydescs.ReferenceChecker
-
Initializes a reference checker using the given file paths.
- RelayCacheOrigins - org.torproject.metrics.collector.conf.Key
- RelayDescriptorDownloader - Class in org.torproject.metrics.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.metrics.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 fromstats/last-downloaded-all-descriptors
. - RelayDescriptorParser - Class in org.torproject.metrics.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.metrics.collector.relaydescs.RelayDescriptorParser
-
Initializes this class.
- RELAYDESCS - Static variable in class org.torproject.metrics.collector.persist.DescriptorPersistence
- RelaydescsActivated - org.torproject.metrics.collector.conf.Key
- RelaydescsOffsetMinutes - org.torproject.metrics.collector.conf.Key
- RelaydescsPeriodMinutes - org.torproject.metrics.collector.conf.Key
- RelayLocalOrigins - org.torproject.metrics.collector.conf.Key
- RelaySources - org.torproject.metrics.collector.conf.Key
- RelaySyncOrigins - org.torproject.metrics.collector.conf.Key
- Remote - org.torproject.metrics.collector.conf.SourceType
- ReplaceIpAddressesWithHashes - org.torproject.metrics.collector.conf.Key
- run() - Method in class org.torproject.metrics.collector.cron.CollecTorMain
-
Log all errors preventing successful completion of the module.
- run() - Method in class org.torproject.metrics.collector.cron.ShutdownHook
- RunOnce - org.torproject.metrics.collector.conf.Key
S
- sanitizeAndStoreExtraInfoDescriptor(byte[]) - Method in class org.torproject.metrics.collector.bridgedescs.SanitizedBridgesWriter
-
Sanitizes an extra-info descriptor and writes it to disk.
- sanitizeAndStoreNetworkStatus(byte[], String, String) - Method in class org.torproject.metrics.collector.bridgedescs.SanitizedBridgesWriter
-
Sanitizes a network status and writes it to disk.
- sanitizeAndStoreServerDescriptor(byte[]) - Method in class org.torproject.metrics.collector.bridgedescs.SanitizedBridgesWriter
-
Sanitizes a bridge server descriptor and writes it to disk.
- SanitizedBridgesWriter - Class in org.torproject.metrics.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.metrics.collector.bridgedescs.SanitizedBridgesWriter
-
Initialize configuration.
- SanitizeWeblogs - Class in org.torproject.metrics.collector.webstats
-
This module processes web-logs for CollecTor according to the weblog sanitation specification published on metrics.torproject.org.
- SanitizeWeblogs(Configuration) - Constructor for class org.torproject.metrics.collector.webstats.SanitizeWeblogs
-
Possibly privacy impacting data is replaced by dummy data producing a log-file (or files) that confirm(s) to Apache's Combined Log Format.
- scheduleModuleRuns(Map<Key, Class<? extends CollecTorMain>>, Configuration) - Method in class org.torproject.metrics.collector.cron.Scheduler
-
Schedule all classes given according to the parameters in the the configuration.
- Scheduler - Class in org.torproject.metrics.collector.cron
-
Scheduler that starts the modules configured in collector.properties.
- SEP - Static variable in class org.torproject.metrics.collector.persist.WebServerAccessLogPersistence
- Server - org.torproject.metrics.collector.conf.Annotation
- SERVERDESC - Static variable in class org.torproject.metrics.collector.persist.DescriptorPersistence
- ServerDescriptorPersistence - Class in org.torproject.metrics.collector.persist
- ServerDescriptorPersistence(RelayServerDescriptor, long) - Constructor for class org.torproject.metrics.collector.persist.ServerDescriptorPersistence
- SERVERDESCS - Static variable in class org.torproject.metrics.collector.persist.DescriptorPersistence
- setArchiveReader(ArchiveReader) - Method in class org.torproject.metrics.collector.relaydescs.RelayDescriptorParser
- setProperty(String, String) - Method in class org.torproject.metrics.collector.conf.Configuration
-
Sets the value for key.
- setRelayDescriptorDownloader(RelayDescriptorDownloader) - Method in class org.torproject.metrics.collector.relaydescs.RelayDescriptorParser
- setWatchableSourceAndLoad(Path) - Method in class org.torproject.metrics.collector.conf.Configuration
-
Load the configuration from the given path and start monitoring changes.
- ShutdownGraceWaitMinutes - org.torproject.metrics.collector.conf.Key
- ShutdownHook - Class in org.torproject.metrics.collector.cron
-
Scheduler that starts the modules configured in collector.properties.
- ShutdownHook() - Constructor for class org.torproject.metrics.collector.cron.ShutdownHook
-
Names the shutdown thread for debugging purposes.
- shutdownScheduler() - Method in class org.torproject.metrics.collector.cron.Scheduler
-
Try to shutdown smoothly, i.e., wait for running tasks to terminate.
- size() - Method in class org.torproject.metrics.collector.conf.Configuration
-
Count of properties.
- SnowflakeStats - org.torproject.metrics.collector.conf.Annotation
- SnowflakeStatsActivated - org.torproject.metrics.collector.conf.Key
- SnowflakeStatsDownloader - Class in org.torproject.metrics.collector.snowflake
- SnowflakeStatsDownloader(Configuration) - Constructor for class org.torproject.metrics.collector.snowflake.SnowflakeStatsDownloader
-
Instantiate the snowflake-stats module using the given configuration.
- SnowflakeStatsOffsetMinutes - org.torproject.metrics.collector.conf.Key
- SnowflakeStatsPeriodMinutes - org.torproject.metrics.collector.conf.Key
- SnowflakeStatsPersistence - Class in org.torproject.metrics.collector.persist
- SnowflakeStatsPersistence(SnowflakeStats) - Constructor for class org.torproject.metrics.collector.persist.SnowflakeStatsPersistence
- SnowflakeStatsSources - org.torproject.metrics.collector.conf.Key
- SnowflakeStatsSyncOrigins - org.torproject.metrics.collector.conf.Key
- SnowflakeStatsUrl - org.torproject.metrics.collector.conf.Key
- SOURCES - Static variable in class org.torproject.metrics.collector.cron.CollecTorMain
- SourceType - Enum in org.torproject.metrics.collector.conf
- startProcessing() - Method in class org.torproject.metrics.collector.bridgedescs.SanitizedBridgesWriter
- startProcessing() - Method in class org.torproject.metrics.collector.bridgepools.BridgePoolAssignmentsProcessor
-
Start processing files, which includes reading original, not-yet-sanitized bridge pool assignment files from disk, splitting them into bridge pool assignment descriptors, sanitizing contained fingerprints, and writing sanitized bridge pool assignments to disk.
- startProcessing() - Method in class org.torproject.metrics.collector.cron.CollecTorMain
-
Module specific code goes here.
- startProcessing() - Method in class org.torproject.metrics.collector.exitlists.ExitListDownloader
- startProcessing() - Method in class org.torproject.metrics.collector.indexer.CreateIndexJson
- startProcessing() - Method in class org.torproject.metrics.collector.onionperf.OnionPerfDownloader
- startProcessing() - Method in class org.torproject.metrics.collector.relaydescs.ArchiveWriter
- startProcessing() - Method in class org.torproject.metrics.collector.snowflake.SnowflakeStatsDownloader
- startProcessing() - Method in class org.torproject.metrics.collector.webstats.SanitizeWeblogs
- StatsPath - org.torproject.metrics.collector.conf.Key
- Status - org.torproject.metrics.collector.conf.Annotation
- StatusPersistence - Class in org.torproject.metrics.collector.persist
- StatusPersistence(BridgeNetworkStatus, String, long) - Constructor for class org.torproject.metrics.collector.persist.StatusPersistence
- storagePath - Variable in class org.torproject.metrics.collector.persist.DescriptorPersistence
- storeAll(String, String) - Method in class org.torproject.metrics.collector.persist.DescriptorPersistence
-
Stores the descriptor to all locations.
- storeAll(String, String) - Method in class org.torproject.metrics.collector.persist.OnionPerfPersistence
-
OnionPerf default storage appends.
- storeAll(String, String) - Method in class org.torproject.metrics.collector.persist.WebServerAccessLogPersistence
-
Logs are not appended.
- storeAll(String, String, StandardOpenOption, StandardOpenOption) - Method in class org.torproject.metrics.collector.persist.DescriptorPersistence
-
Stores the descriptor to all locations.
- storeCertificate(byte[], String, long) - Method in class org.torproject.metrics.collector.relaydescs.ArchiveWriter
-
Stores a key certificate to disk.
- storeConsensus(byte[], long, SortedSet<String>, SortedSet<String>) - Method in class org.torproject.metrics.collector.relaydescs.ArchiveWriter
-
Stores a consensus to disk and adds all referenced votes and server descriptors to the list of missing descriptors.
- storeDesc(Descriptor, long) - Method in class org.torproject.metrics.collector.sync.SyncPersistence
-
Stores a descriptor in main storage and recent.
- storeDescs(Iterable<Descriptor>, long) - Method in class org.torproject.metrics.collector.sync.SyncPersistence
-
Stores descriptors in main storage and recent.
- storeExtraInfoDescriptor(byte[], String, long) - Method in class org.torproject.metrics.collector.relaydescs.ArchiveWriter
-
Stores an extra-info descriptor to disk.
- storeMicrodescConsensus(byte[], long, SortedSet<String>) - Method in class org.torproject.metrics.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.metrics.collector.relaydescs.ArchiveWriter
-
Stores a microdescriptor to disk.
- storeMicrodescriptor(byte[], String, String, long) - Method in class org.torproject.metrics.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.
- storeOut(String) - Method in class org.torproject.metrics.collector.persist.DescriptorPersistence
-
Stores the descriptor in out (i.e.
- storeOut(String) - Method in class org.torproject.metrics.collector.persist.OnionPerfPersistence
-
OnionPerf default storage appends.
- storeOut(String, StandardOpenOption) - Method in class org.torproject.metrics.collector.persist.DescriptorPersistence
-
Stores the descriptor in out (i.e.
- storeRecent(String) - Method in class org.torproject.metrics.collector.persist.DescriptorPersistence
-
Stores the descriptor in recent.
- storeRecent(String) - Method in class org.torproject.metrics.collector.persist.WebServerAccessLogPersistence
-
Logs are not appended.
- storeRecent(String, StandardOpenOption) - Method in class org.torproject.metrics.collector.persist.DescriptorPersistence
-
Stores the descriptor in recent.
- storeServerDescriptor(byte[], String, long, String) - Method in class org.torproject.metrics.collector.relaydescs.ArchiveWriter
-
Stores a server descriptor to disk and adds the referenced extra-info descriptor to the list of missing descriptors.
- storeToFileSystem(byte[], byte[], Path, StandardOpenOption) - Static method in class org.torproject.metrics.collector.persist.PersistenceUtils
-
Stores a descriptor adding missing annotations with the given options.
- storeToFileSystem(byte[], byte[], Path, StandardOpenOption, boolean) - Static method in class org.torproject.metrics.collector.persist.PersistenceUtils
-
Stores a descriptor adding missing annotations with the given options.
- storeVote(byte[], long, String, String, SortedSet<String>) - Method in class org.torproject.metrics.collector.relaydescs.ArchiveWriter
-
Stores a vote to disk and adds all referenced server descriptors to the list of missing descriptors.
- Sync - org.torproject.metrics.collector.conf.SourceType
- SyncManager - Class in org.torproject.metrics.collector.sync
- SyncManager() - Constructor for class org.torproject.metrics.collector.sync.SyncManager
- syncMapPathsDescriptors() - Method in class org.torproject.metrics.collector.cron.CollecTorMain
-
Returns map of path and descriptor type for download.
- syncMarker() - Method in class org.torproject.metrics.collector.bridgedescs.SanitizedBridgesWriter
- syncMarker() - Method in class org.torproject.metrics.collector.bridgepools.BridgePoolAssignmentsProcessor
-
Return the synchronization marker.
- syncMarker() - Method in class org.torproject.metrics.collector.cron.CollecTorMain
-
Returns property prefix/infix/postfix for Sync related properties.
- syncMarker() - Method in class org.torproject.metrics.collector.exitlists.ExitListDownloader
- syncMarker() - Method in class org.torproject.metrics.collector.indexer.CreateIndexJson
- syncMarker() - Method in class org.torproject.metrics.collector.onionperf.OnionPerfDownloader
- syncMarker() - Method in class org.torproject.metrics.collector.relaydescs.ArchiveWriter
- syncMarker() - Method in class org.torproject.metrics.collector.snowflake.SnowflakeStatsDownloader
- syncMarker() - Method in class org.torproject.metrics.collector.webstats.SanitizeWeblogs
- SYNCORIGINS - Static variable in class org.torproject.metrics.collector.sync.SyncManager
- SyncPath - org.torproject.metrics.collector.conf.Key
- SyncPersistence - Class in org.torproject.metrics.collector.sync
-
Provides persistence for descriptors based on the descriptor type.
- SyncPersistence(Configuration) - Constructor for class org.torproject.metrics.collector.sync.SyncPersistence
-
Initialize with the given configuration.
T
- TEMPFIX - Static variable in class org.torproject.metrics.collector.persist.PersistenceUtils
- toString() - Method in enum org.torproject.metrics.collector.conf.Annotation
U
- update(Observable, Object) - Method in class org.torproject.metrics.collector.cron.CollecTorMain
- UpdateindexActivated - org.torproject.metrics.collector.conf.Key
- UpdateindexOffsetMinutes - org.torproject.metrics.collector.conf.Key
- UpdateindexPeriodMinutes - org.torproject.metrics.collector.conf.Key
V
- valueOf(String) - Static method in enum org.torproject.metrics.collector.conf.Annotation
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.torproject.metrics.collector.conf.Key
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.torproject.metrics.collector.conf.SourceType
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum org.torproject.metrics.collector.conf.Annotation
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum org.torproject.metrics.collector.conf.Key
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum org.torproject.metrics.collector.conf.SourceType
-
Returns an array containing the constants of this enum type, in the order they are declared.
- virtualHost - Variable in class org.torproject.metrics.collector.webstats.LogMetadata
-
The name of the virtual host.
- Vote - org.torproject.metrics.collector.conf.Annotation
- VotePersistence - Class in org.torproject.metrics.collector.persist
- VotePersistence(RelayNetworkStatusVote, long) - Constructor for class org.torproject.metrics.collector.persist.VotePersistence
W
- WebServerAccessLogPersistence - Class in org.torproject.metrics.collector.persist
- WebServerAccessLogPersistence(WebServerAccessLog) - Constructor for class org.torproject.metrics.collector.persist.WebServerAccessLogPersistence
-
Prepare storing the given descriptor.
- WEBSTATS - Static variable in class org.torproject.metrics.collector.persist.DescriptorPersistence
- WebstatsActivated - org.torproject.metrics.collector.conf.Key
- WebstatsLimits - org.torproject.metrics.collector.conf.Key
- WebstatsLocalOrigins - org.torproject.metrics.collector.conf.Key
- WebstatsOffsetMinutes - org.torproject.metrics.collector.conf.Key
- WebstatsPeriodMinutes - org.torproject.metrics.collector.conf.Key
- WebstatsSources - org.torproject.metrics.collector.conf.Key
- WebstatsSyncOrigins - org.torproject.metrics.collector.conf.Key
- writeFile() - Method in class org.torproject.metrics.collector.relaydescs.RelayDescriptorDownloader
-
Writes status files to disk and logs statistics about downloading relay descriptors in this execution.
All Classes All Packages