[tor-commits] [metrics-lib/master] Remove Torperf and GetTor stats readers.

karsten at torproject.org karsten at torproject.org
Sat Feb 25 12:03:45 UTC 2012


commit 02fc4aa5c6a0bdf4ebaf743ac6522916404d1ddf
Author: Karsten Loesing <karsten.loesing at gmx.net>
Date:   Sun Feb 19 10:02:46 2012 -0800

    Remove Torperf and GetTor stats readers.
    
    These readers are yet unimplemented.  Also, we're going to read Torperf
    and GetTor stats files using DescriptorReader.
---
 .../torproject/descriptor/GetTorStatsReader.java   |   20 --------------------
 .../torproject/descriptor/TorperfDataReader.java   |   20 --------------------
 2 files changed, 0 insertions(+), 40 deletions(-)

diff --git a/src/org/torproject/descriptor/GetTorStatsReader.java b/src/org/torproject/descriptor/GetTorStatsReader.java
deleted file mode 100644
index 0b4c1d6..0000000
--- a/src/org/torproject/descriptor/GetTorStatsReader.java
+++ /dev/null
@@ -1,20 +0,0 @@
-/* Copyright 2011, 2012 The Tor Project
- * See LICENSE for licensing information */
-package org.torproject.descriptor;
-
-import java.io.File;
-import java.util.Iterator;
-
-/* Read GetTor stats from one or more local directories. */
-public interface GetTorStatsReader {
-
-  /* Add a local directory to read GetTor stats files from. */
-  public void addDirectory(File directory);
-
-  /* Read the previously configured GetTor stats files and make them
-   * available via the returned blocking iterator.  Whenever the reader
-   * runs out of descriptors and expects to provide more shortly after, it
-   * blocks the caller.  This method can only be run once. */
-  public Iterator<DescriptorFile> readDescriptors();
-}
-
diff --git a/src/org/torproject/descriptor/TorperfDataReader.java b/src/org/torproject/descriptor/TorperfDataReader.java
deleted file mode 100644
index c6e6c8d..0000000
--- a/src/org/torproject/descriptor/TorperfDataReader.java
+++ /dev/null
@@ -1,20 +0,0 @@
-/* Copyright 2011, 2012 The Tor Project
- * See LICENSE for licensing information */
-package org.torproject.descriptor;
-
-import java.io.File;
-import java.util.Iterator;
-
-/* Read Torperf data files from one or more local directories. */
-public interface TorperfDataReader {
-
-  /* Add a local directory to read Torperf data files from. */
-  public void addDirectory(File directory);
-
-  /* Read the previously configured Torperf data files and make them
-   * available via the returned blocking iterator.  Whenever the reader
-   * runs out of descriptors and expects to provide more shortly after, it
-   * blocks the caller.  This method can only be run once. */
-  public Iterator<DescriptorFile> readDescriptors();
-}
-



More information about the tor-commits mailing list