- 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.
- call() - Method in class org.torproject.collector.cron.CollecTorMain
-
Wrapper for run
.
- 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.
- cleanDirectory(Path) - Static method in class org.torproject.collector.persist.PersistenceUtils
-
Move temporary files to their final location.
- cleanDirectory() - Method in class org.torproject.collector.sync.SyncPersistence
-
Cleans the directory in RecentPath
after storing descriptors.
- 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.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.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.
- 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
-
- ConsensusPersistence - Class in org.torproject.collector.persist
-
- ConsensusPersistence(RelayNetworkStatusConsensus, long) - Constructor for class org.torproject.collector.persist.ConsensusPersistence
-
Initialize with appropriate annotation and given parameters.
- 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.
- Criterium<T> - Interface in org.torproject.collector.sync
-
Interface for decisions to be made in the sync-process.
- 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.
- getLong(Key) - Method in class org.torproject.collector.conf.Configuration
-
Parse a long property.
- 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.
- getProperty(String, String) - Method in class org.torproject.collector.conf.Configuration
-
Retrieves the value for key returning a default for non-existing keys.
- getRecentPath() - Method in class org.torproject.collector.persist.DescriptorPersistence
-
Return the final location for 'recent' descriptors.
- getSourceTypeSet(Key) - Method in class org.torproject.collector.conf.Configuration
-
Returns a SourceType
as List, e.g.
- getStoragePath() - Method in class org.torproject.collector.persist.DescriptorPersistence
-
Return the final storage location inside storage.
- 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.
- getUrlArray(Key) - Method in class org.torproject.collector.conf.Configuration
-
Returns URL[]
from a property.
- sanitizeAndStoreExtraInfoDescriptor(byte[]) - Method in class org.torproject.collector.bridgedescs.SanitizedBridgesWriter
-
Sanitizes an extra-info descriptor and writes it to disk.
- sanitizeAndStoreNetworkStatus(byte[], String, 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
-
Initialize configuration.
- 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.
- SERVERDESC - Static variable in class org.torproject.collector.persist.DescriptorPersistence
-
- ServerDescriptorPersistence - Class in org.torproject.collector.persist
-
- ServerDescriptorPersistence(RelayServerDescriptor, long) - Constructor for class org.torproject.collector.persist.ServerDescriptorPersistence
-
- SERVERDESCS - Static variable in class org.torproject.collector.persist.DescriptorPersistence
-
- 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.
- ShutdownHook - Class in org.torproject.collector.cron
-
Scheduler that starts the modules configured in collector.properties.
- ShutdownHook() - Constructor for class org.torproject.collector.cron.ShutdownHook
-
Names the shutdown thread for debugging purposes.
- 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.
- SOURCES - Static variable in class org.torproject.collector.cron.CollecTorMain
-
- SourceType - Enum in org.torproject.collector.conf
-
- 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.onionperf.OnionperfDownloader
-
- startProcessing() - Method in class org.torproject.collector.relaydescs.ArchiveWriter
-
- StatusPersistence - Class in org.torproject.collector.persist
-
- StatusPersistence(BridgeNetworkStatus, String, long) - Constructor for class org.torproject.collector.persist.StatusPersistence
-
- storagePath - Variable in class org.torproject.collector.persist.DescriptorPersistence
-
- storeAll(String, String) - Method in class org.torproject.collector.persist.DescriptorPersistence
-
Stores the descriptor to all locations.
- storeAll(String, String, StandardOpenOption, StandardOpenOption) - Method in class org.torproject.collector.persist.DescriptorPersistence
-
Stores the descriptor to all locations.
- 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.
- storeDesc(Descriptor, long) - Method in class org.torproject.collector.sync.SyncPersistence
-
Stores a descriptor in main storage and recent.
- storeDescs(Iterable<Descriptor>, long) - Method in class org.torproject.collector.sync.SyncPersistence
-
Stores descriptors in main storage and recent.
- 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.
- storeOut(String) - Method in class org.torproject.collector.persist.DescriptorPersistence
-
Stores the descriptor in out (i.e.
- storeOut(String, StandardOpenOption) - Method in class org.torproject.collector.persist.DescriptorPersistence
-
Stores the descriptor in out (i.e.
- storeRecent(String) - Method in class org.torproject.collector.persist.DescriptorPersistence
-
Stores the descriptor in recent.
- storeRecent(String, StandardOpenOption) - Method in class org.torproject.collector.persist.DescriptorPersistence
-
Stores the descriptor in recent.
- 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.
- storeToFileSystem(byte[], byte[], Path, StandardOpenOption) - Static method in class org.torproject.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.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.collector.relaydescs.ArchiveWriter
-
Stores a vote to disk and adds all referenced server descriptors to
the list of missing descriptors.
- SyncManager - Class in org.torproject.collector.sync
-
- SyncManager() - Constructor for class org.torproject.collector.sync.SyncManager
-
- syncMapPathsDescriptors() - Method in class org.torproject.collector.cron.CollecTorMain
-
Returns map of path and descriptor type for download.
- syncMarker() - Method in class org.torproject.collector.bridgedescs.SanitizedBridgesWriter
-
- syncMarker() - Method in class org.torproject.collector.cron.CollecTorMain
-
Returns property prefix/infix/postfix for Sync related properties.
- syncMarker() - Method in class org.torproject.collector.exitlists.ExitListDownloader
-
- syncMarker() - Method in class org.torproject.collector.index.CreateIndexJson
-
- syncMarker() - Method in class org.torproject.collector.onionperf.OnionperfDownloader
-
- syncMarker() - Method in class org.torproject.collector.relaydescs.ArchiveWriter
-
- SYNCORIGINS - Static variable in class org.torproject.collector.sync.SyncManager
-
- SyncPersistence - Class in org.torproject.collector.sync
-
Provides persistence for descriptors based on the descriptor type.
- SyncPersistence(Configuration) - Constructor for class org.torproject.collector.sync.SyncPersistence
-
Initialize with the given configuration.