Class GroovyLogReader
- java.lang.Object
-
- de.uplanet.lucy.server.monitor.log.GroovyLogReader
-
@Scriptable public final class GroovyLogReader extends Object
Parse statistics logs with Groovy.
-
-
Constructor Summary
Constructors Constructor Description GroovyLogReader()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
flushLogQueue()
Flush the internal log queue to the log file.static long
getLogDateFromFile(File p_file)
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.
-
-
-
Method Detail
-
getLogDateFromFile
public static long getLogDateFromFile(File p_file)
Get the log time of a file.- Parameters:
p_file
- The file- Returns:
- 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.
-
-