[tor-commits] [arm/master] Show proper class hierarchy for the tracker module

atagar at torproject.org atagar at torproject.org
Mon Jun 23 15:00:33 UTC 2014


commit 4177c86b1f730f0035a67234760ebd3ff9ddbaa5
Author: Damian Johnson <atagar at torproject.org>
Date:   Sat Jun 21 14:32:59 2014 -0700

    Show proper class hierarchy for the tracker module
    
    Our header's supposed to show inheritance. Also we were missing our
    PortUsageTracker class.
---
 arm/util/tracker.py |   19 +++++++++++--------
 1 file changed, 11 insertions(+), 8 deletions(-)

diff --git a/arm/util/tracker.py b/arm/util/tracker.py
index e5d819d..8b06042 100644
--- a/arm/util/tracker.py
+++ b/arm/util/tracker.py
@@ -9,20 +9,23 @@ Background tasks for gathering information about the tor process.
   stop_trackers - halts any active trackers
 
   Daemon - common parent for resolvers
+    |- ConnectionTracker - periodically checks the connections established by tor
+    |  |- get_custom_resolver - provide the custom conntion resolver we're using
+    |  |- set_custom_resolver - overwrites automatic resolver selecion with a custom resolver
+    |  +- get_connections - provides our latest connection results
+    |
+    |- ResourceTracker - periodically checks the resource usage of tor
+    |  +- get_resource_usage - provides our latest resource usage results
+    |
+    |- PortUsageTracker - provides information about port usage on the local system
+    |  +- get_processes_using_ports - mapping of ports to the processes using it
+    |
     |- run_counter - number of successful runs
     |- get_rate - provides the rate at which we run
     |- set_rate - sets the rate at which we run
     |- set_paused - pauses or continues work
     +- stop - stops further work by the daemon
 
-  ConnectionTracker - periodically checks the connections established by tor
-    |- get_custom_resolver - provide the custom conntion resolver we're using
-    |- set_custom_resolver - overwrites automatic resolver selecion with a custom resolver
-    +- get_connections - provides our latest connection results
-
-  ResourceTracker - periodically checks the resource usage of tor
-    +- get_resource_usage - provides our latest resource usage results
-
 .. data:: Resources
 
   Resource usage information retrieved about the tor process.





More information about the tor-commits mailing list