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)
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)
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 Tonga.
|
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. |
java.nio.file.Path |
Configuration.getPath(Key key)
Returns a
Path property, 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. |
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 |
TorperfDownloader.cleanUpRsyncDirectory()
Delete all files from the rsync directory that have not been modified
in the last three days.
|
protected void |
TorperfDownloader.startProcessing() |