Class BridgedbMetricsProcessor
- java.lang.Object
-
- org.torproject.metrics.collector.sync.SyncManager
-
- org.torproject.metrics.collector.cron.CollecTorMain
-
- org.torproject.metrics.collector.bridgedb.BridgedbMetricsProcessor
-
- All Implemented Interfaces:
java.lang.Runnable
,java.util.concurrent.Callable<java.lang.Object>
public class BridgedbMetricsProcessor extends CollecTorMain
-
-
Field Summary
-
Fields inherited from class org.torproject.metrics.collector.cron.CollecTorMain
config, mapPathDescriptors, SOURCES
-
Fields inherited from class org.torproject.metrics.collector.sync.SyncManager
SYNCORIGINS
-
-
Constructor Summary
Constructors Constructor Description BridgedbMetricsProcessor(Configuration config)
Initialize this class with the given configuration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
module()
Return the module identifier.protected void
startProcessing()
Start processing files, which includes reading BridgeDB statistics files from disk, possibly decompressing them and splitting them by date, and writing them back to disk.protected java.lang.String
syncMarker()
Return the synchronization marker.-
Methods inherited from class org.torproject.metrics.collector.cron.CollecTorMain
call, checkAvailableSpace, readProcessedFiles, run, syncMapPathsDescriptors, writeProcessedFiles
-
Methods inherited from class org.torproject.metrics.collector.sync.SyncManager
merge
-
-
-
-
Constructor Detail
-
BridgedbMetricsProcessor
public BridgedbMetricsProcessor(Configuration config)
Initialize this class with the given configuration.
-
-
Method Detail
-
module
public java.lang.String module()
Return the module identifier.- Specified by:
module
in classCollecTorMain
- Returns:
- Module identifier.
-
syncMarker
protected java.lang.String syncMarker()
Return the synchronization marker.- Specified by:
syncMarker
in classCollecTorMain
- Returns:
- Synchronization marker.
-
startProcessing
protected void startProcessing() throws ConfigurationException
Start processing files, which includes reading BridgeDB statistics files from disk, possibly decompressing them and splitting them by date, and writing them back to disk.- Specified by:
startProcessing
in classCollecTorMain
- Throws:
ConfigurationException
- Thrown if configuration values cannot be obtained.
-
-