Package services.gui

Class LogFileReader


  • @Singleton
    public class LogFileReader
    extends java.lang.Object
    Class responsible for reading JATOS log files. It's not part of utils.common.IOUtils because it uses Akka Streams.
    • Constructor Summary

      Constructors 
      Constructor Description
      LogFileReader()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      akka.stream.javadsl.Source<akka.util.ByteString,​?> read​(java.lang.String filename, int lineLimit)
      Reads from the logs folder the given log file in reverse order and returns it as Akka Stream source.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LogFileReader

        public LogFileReader()
    • Method Detail

      • read

        public akka.stream.javadsl.Source<akka.util.ByteString,​?> read​(java.lang.String filename,
                                                                             int lineLimit)
        Reads from the logs folder the given log file in reverse order and returns it as Akka Stream source. It maximal reads until line specified in lineLimit.