Modifier and Type | Method and Description |
---|---|
void |
SanitizedBridgesWriter.cleanUpRsyncDirectory()
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.
|
void |
BridgeDescriptorParser.parse(byte[] allData,
java.lang.String dateTime,
java.lang.String authorityFingerprint)
Parses the first line of the given descriptor data to determine the
descriptor type and passes it to the sanitized bridges writer.
|
void |
SanitizedBridgesWriter.sanitizeAndStoreNetworkStatus(byte[] data,
java.lang.String publicationTime,
java.lang.String authorityFingerprint)
Sanitizes a network status and writes it to disk.
|
protected void |
SanitizedBridgesWriter.startProcessing() |
Constructor and Description |
---|
BridgeSnapshotReader(BridgeDescriptorParser bdp,
java.io.File bridgeDirectoriesDir,
java.io.File statsDirectory)
Reads the half-hourly snapshots of bridge descriptors from Bifroest.
|
Modifier and Type | Method and Description |
---|---|
boolean |
Configuration.getBool(Key key)
Returns a
boolean property (case insensitiv), e.g. |
int |
Configuration.getInt(Key key)
Parse an integer property and translate the String
"inf" into Integer.MAX_VALUE. |
long |
Configuration.getLong(Key key)
Parse a long property.
|
java.nio.file.Path |
Configuration.getPath(Key key)
Returns a
Path property, e.g. |
java.util.Set<SourceType> |
Configuration.getSourceTypeSet(Key key)
Returns a
SourceType as List, e.g. |
java.lang.String[] |
Configuration.getStringArray(Key key)
Returns
String[] from a property. |
java.lang.String[][] |
Configuration.getStringArrayArray(Key key)
Returns
String[][] from a property. |
java.net.URL |
Configuration.getUrl(Key key)
Returns a
URL property, e.g. |
java.net.URL[] |
Configuration.getUrlArray(Key key)
Returns
URL[] from a property. |
void |
Configuration.setWatchableSourceAndLoad(java.nio.file.Path confPath)
Load the configuration from the given path and start monitoring changes.
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
CollecTorMain.startProcessing()
Module specific code goes here.
|
Modifier and Type | Method and Description |
---|---|
void |
ExitListDownloader.cleanUpRsyncDirectory()
Delete all files from the rsync directory that have not been modified
in the last three days.
|
protected void |
ExitListDownloader.startProcessing() |
Modifier and Type | Method and Description |
---|---|
protected void |
CreateIndexJson.startProcessing() |
Modifier and Type | Method and Description |
---|---|
protected void |
ArchiveWriter.startProcessing() |
Constructor and Description |
---|
ArchiveWriter(Configuration config)
Initialize an archive writer with a given configuration.
|
Modifier and Type | Method and Description |
---|---|
void |
SyncManager.merge(Configuration conf,
java.lang.String marker,
java.util.Map<java.lang.String,java.lang.Class<? extends org.torproject.descriptor.Descriptor>> mapPathDesc)
Merges the synced files to recent and out storage.
|
Constructor and Description |
---|
SyncPersistence(Configuration conf)
Initialize with the given configuration.
|
Modifier and Type | Method and Description |
---|---|
void |
TorperfDownloader.cleanUpRsyncDirectory()
Delete all files from the rsync directory that have not been modified
in the last three days.
|
protected void |
TorperfDownloader.startProcessing() |