[tor-commits] [metrics-lib/master] Recognize geoip-* lines in extra-info descriptors.
karsten at torproject.org
karsten at torproject.org
Thu Jan 12 07:14:08 UTC 2012
commit a994451ca0f0d93408b63332193794340c452b10
Author: Karsten Loesing <karsten.loesing at gmx.net>
Date: Thu Jan 12 08:13:18 2012 +0100
Recognize geoip-* lines in extra-info descriptors.
---
.../impl/RelayExtraInfoDescriptorImpl.java | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/src/org/torproject/descriptor/impl/RelayExtraInfoDescriptorImpl.java b/src/org/torproject/descriptor/impl/RelayExtraInfoDescriptorImpl.java
index 61e5f0f..a07caec 100644
--- a/src/org/torproject/descriptor/impl/RelayExtraInfoDescriptorImpl.java
+++ b/src/org/torproject/descriptor/impl/RelayExtraInfoDescriptorImpl.java
@@ -88,6 +88,10 @@ public class RelayExtraInfoDescriptorImpl extends DescriptorImpl
this.parseWriteHistoryLine(line, lineNoOpt, partsNoOpt);
} else if (keyword.equals("geoip-db-digest")) {
this.parseGeoipDbDigestLine(line, lineNoOpt, partsNoOpt);
+ } else if (keyword.equals("geoip-start-time")) {
+ this.parseGeoipStartTimeLine(line, lineNoOpt, partsNoOpt);
+ } else if (keyword.equals("geoip-client-origins")) {
+ this.parseGeoipClientOriginsLine(line, lineNoOpt, partsNoOpt);
} else if (keyword.equals("dirreq-stats-end")) {
this.parseDirreqStatsEndLine(line, lineNoOpt, partsNoOpt);
} else if (keyword.equals("dirreq-v2-ips")) {
@@ -200,6 +204,16 @@ public class RelayExtraInfoDescriptorImpl extends DescriptorImpl
/* TODO Implement me. */
}
+ private void parseGeoipStartTimeLine(String line, String lineNoOpt,
+ String[] partsNoOpt) throws DescriptorParseException {
+ /* TODO Implement me. */
+ }
+
+ private void parseGeoipClientOriginsLine(String line, String lineNoOpt,
+ String[] partsNoOpt) throws DescriptorParseException {
+ /* TODO Implement me. */
+ }
+
private void parseDirreqStatsEndLine(String line, String lineNoOpt,
String[] partsNoOpt) throws DescriptorParseException {
/* TODO Implement me. */
More information about the tor-commits
mailing list