Class ExitListDownloader
- java.lang.Object
-
- org.torproject.metrics.collector.sync.SyncManager
-
- org.torproject.metrics.collector.cron.CollecTorMain
-
- org.torproject.metrics.collector.exitlists.ExitListDownloader
-
- All Implemented Interfaces:
java.lang.Runnable
,java.util.concurrent.Callable<java.lang.Object>
,java.util.Observer
public class ExitListDownloader 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 ExitListDownloader(Configuration config)
Instantiate the exit-lists module using the given configuration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cleanUpRsyncDirectory()
Delete all files from the rsync directory that have not been modified in the last three days.java.lang.String
module()
Returns the module name for logging purposes.protected void
startProcessing()
Module specific code goes here.protected java.lang.String
syncMarker()
Returns property prefix/infix/postfix for Sync related properties.-
Methods inherited from class org.torproject.metrics.collector.cron.CollecTorMain
call, checkAvailableSpace, run, syncMapPathsDescriptors, update
-
Methods inherited from class org.torproject.metrics.collector.sync.SyncManager
merge
-
-
-
-
Constructor Detail
-
ExitListDownloader
public ExitListDownloader(Configuration config)
Instantiate the exit-lists module using the given configuration.
-
-
Method Detail
-
module
public java.lang.String module()
Description copied from class:CollecTorMain
Returns the module name for logging purposes.- Specified by:
module
in classCollecTorMain
-
syncMarker
protected java.lang.String syncMarker()
Description copied from class:CollecTorMain
Returns property prefix/infix/postfix for Sync related properties.- Specified by:
syncMarker
in classCollecTorMain
-
startProcessing
protected void startProcessing() throws ConfigurationException
Description copied from class:CollecTorMain
Module specific code goes here.- Specified by:
startProcessing
in classCollecTorMain
- Throws:
ConfigurationException
-
cleanUpRsyncDirectory
public void cleanUpRsyncDirectory()
Delete all files from the rsync directory that have not been modified in the last three days.
-
-