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
  • Constructor Details

  • Method Details

    • module

      public java.lang.String module()
      Return the module identifier.
      Specified by:
      module in class CollecTorMain
      Returns:
      Module identifier.
    • syncMarker

      protected java.lang.String syncMarker()
      Return the synchronization marker.
      Specified by:
      syncMarker in class CollecTorMain
      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 class CollecTorMain
      Throws:
      ConfigurationException - Thrown if configuration values cannot be obtained.
    • cleanUpRsyncDirectory

      public void cleanUpRsyncDirectory()
      Delete all files from the rsync directory that have not been modified in the last three days.