Klasse GroovyLogReader

java.lang.Object
de.uplanet.lucy.server.monitor.log.GroovyLogReader

@Scriptable public final class GroovyLogReader extends Object
Parse statistics logs with Groovy.
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
     
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    static void
    Flush the internal log queue to the log file.
    static long
    Get the log time of a file.
    static long
    Get the log time of a file.
    static void
    readLog(File p_file, groovy.lang.Closure<?> p_closure)
    Parse log files and hand over the log entries to a closure.
    static void
    readLog(Path p_file, groovy.lang.Closure<?> p_closure)
    Parse log files and hand over the log entries to a closure.

    Von Klasse geerbte Methoden java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Konstruktordetails

    • GroovyLogReader

      public GroovyLogReader()
  • Methodendetails

    • getLogDateFromFile

      public static long getLogDateFromFile(File p_file)
      Get the log time of a file.
      Parameter:
      p_file - The file
      Gibt zurück:
      The log time in milliseconds since midnight, 1970-01-01 UTC.
    • getLogDateFromFile

      public static long getLogDateFromFile(Path p_file)
      Get the log time of a file.
      Parameter:
      p_file - The file
      Gibt zurück:
      The log time in milliseconds since midnight, 1970-01-01 UTC.
    • flushLogQueue

      public static void flushLogQueue()
      Flush the internal log queue to the log file.
    • readLog

      public static void readLog(File p_file, groovy.lang.Closure<?> p_closure) throws IOException, de.uplanet.lucy.server.monitor.log.LogParseException
      Parse log files and hand over the log entries to a closure.

      The log entries are also the delegate of the given closure.

      Parameter:
      p_file - A statistics log file.
      p_closure - A closure that is being called for each log entry.
      Löst aus:
      IOException - If an I/O error occurred.
      de.uplanet.lucy.server.monitor.log.LogParseException - If the content of the log could not be parsed.
    • readLog

      public static void readLog(Path p_file, groovy.lang.Closure<?> p_closure) throws IOException, de.uplanet.lucy.server.monitor.log.LogParseException
      Parse log files and hand over the log entries to a closure.

      The log entries are also the delegate of the given closure.

      Parameter:
      p_file - A statistics log file.
      p_closure - A closure that is being called for each log entry.
      Löst aus:
      IOException - If an I/O error occurred.
      de.uplanet.lucy.server.monitor.log.LogParseException - If the content of the log could not be parsed.