Class ReferenceChecker

java.lang.Object
org.torproject.metrics.collector.relaydescs.ReferenceChecker

public class ReferenceChecker
extends java.lang.Object
  • Constructor Summary

    Constructors 
    Constructor Description
    ReferenceChecker​(java.io.File descriptorsDir, java.io.File referencesFile, java.io.File historyFile)
    Initializes a reference checker using the given file paths.
  • Method Summary

    Modifier and Type Method Description
    void check()
    Checks references between descriptors, and if too many referenced descriptors are missing, puts out a warning to the logs.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ReferenceChecker

      public ReferenceChecker​(java.io.File descriptorsDir, java.io.File referencesFile, java.io.File historyFile)
      Initializes a reference checker using the given file paths.
  • Method Details

    • check

      public void check()
      Checks references between descriptors, and if too many referenced descriptors are missing, puts out a warning to the logs.