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

[tor-commits] [metrics-lib/release] Override logLines method from LogDescriptor.



commit c54b264ad865d522bceb135d0fd0ab6b116e5f81
Author: iwakeh <iwakeh@xxxxxxxxxxxxxx>
Date:   Mon Feb 26 15:24:26 2018 +0000

    Override logLines method from LogDescriptor.
---
 .../java/org/torproject/descriptor/WebServerAccessLog.java     | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/src/main/java/org/torproject/descriptor/WebServerAccessLog.java b/src/main/java/org/torproject/descriptor/WebServerAccessLog.java
index 5f3ad73..a24b9cd 100644
--- a/src/main/java/org/torproject/descriptor/WebServerAccessLog.java
+++ b/src/main/java/org/torproject/descriptor/WebServerAccessLog.java
@@ -6,6 +6,7 @@ package org.torproject.descriptor;
 import java.time.LocalDate;
 import java.util.List;
 import java.util.Optional;
+import java.util.stream.Stream;
 
 /**
  * Contains a sanitized web server access log file from a {@code torproject.org}
@@ -63,6 +64,15 @@ public interface WebServerAccessLog extends LogDescriptor {
   public List<String> getUnrecognizedLines();
 
   /**
+   * Returns a stream of all valid log lines.
+   *
+   * @since 2.3.0
+   */
+  @Override
+  public Stream<WebServerAccessLog.Line> logLines()
+      throws DescriptorParseException;
+
+  /**
    * Facilitates access to all log line fields that don't only contain
    * default values post sanitization.
    *



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