[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [metrics-lib/master] Add geoip and bridge stats to the interface.



commit 6c76bf46a18565457e8ba79980514e6334ca1bc7
Author: Karsten Loesing <karsten.loesing@xxxxxxx>
Date:   Wed Mar 21 16:20:32 2012 +0100

    Add geoip and bridge stats to the interface.
---
 .../torproject/descriptor/ExtraInfoDescriptor.java |   24 ++++++++++++++++++++
 1 files changed, 24 insertions(+), 0 deletions(-)

diff --git a/src/org/torproject/descriptor/ExtraInfoDescriptor.java b/src/org/torproject/descriptor/ExtraInfoDescriptor.java
index cb64a62..18a5b97 100644
--- a/src/org/torproject/descriptor/ExtraInfoDescriptor.java
+++ b/src/org/torproject/descriptor/ExtraInfoDescriptor.java
@@ -209,5 +209,29 @@ public interface ExtraInfoDescriptor extends Descriptor {
    * rounded up to the nearest multiple of 4, or null if no exit
    * statistics are included. */
   public SortedMap<String, Integer> getExitStreamsOpened();
+
+  /* Return the start of the included geoip statistics, or -1 if no geoip
+   * statistics are included. */
+  public long getGeoipStartTimeMillis();
+
+  /* Return statistics on client IP addresses with map keys being country
+   * codes and map values being the number of unique IP addresses that
+   * have connected from that country rounded up to the nearest multiple
+   * of 8, or null if no geoip statistics are included. */
+  public SortedMap<String, Integer> getGeoipClientOrigins();
+
+  /* Return the end of the included bridge statistics, or -1 if no bridge
+   * statistics are included. */
+  public long getBridgeStatsEndMillis();
+
+  /* Return the interval length of the included bridge statistics in
+   * seconds, or -1 if no bridge statistics are included. */
+  public long getBridgeStatsIntervalLength();
+
+  /* Return statistics on client IP addresses with map keys being country
+   * codes and map values being the number of unique IP addresses that
+   * have connected from that country rounded up to the nearest multiple
+   * of 8, or null if no bridge statistics are included. */
+  public SortedMap<String, Integer> getBridgeIps();
 }
 

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits