Class FileLogReader

java.lang.Object
org.eclipse.rdf4j.common.logging.base.AbstractLogReader
org.eclipse.rdf4j.common.logging.file.logback.FileLogReader
All Implemented Interfaces:
Iterator<LogRecord>, LogReader

public class FileLogReader extends AbstractLogReader
File log reader
  • Constructor Details

    • FileLogReader

      public FileLogReader()
      Constructor
    • FileLogReader

      public FileLogReader(File logFile)
      Constructor
      Parameters:
      logFile -
  • Method Details

    • setAppender

      public void setAppender(ch.qos.logback.core.Appender<?> appender)
      Description copied from interface: LogReader
      Logging appender associated with this reader.
      Specified by:
      setAppender in interface LogReader
      Overrides:
      setAppender in class AbstractLogReader
      Parameters:
      appender - logging appender associated with this reader
    • init

      public void init() throws Exception
      Description copied from interface: LogReader
      Initialize the log reader.
      Throws:
      Exception
    • isMoreAvailable

      public boolean isMoreAvailable()
      Description copied from interface: LogReader
      Check if more records are available after limit is reached.
      Returns:
      true if more records are available
    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<LogRecord>
      Specified by:
      hasNext in class AbstractLogReader
    • next

      public LogRecord next()
      Specified by:
      next in interface Iterator<LogRecord>
      Specified by:
      next in class AbstractLogReader
    • destroy

      public void destroy() throws IOException
      Description copied from interface: LogReader
      Destroy the log reader and release all used resources.
      Throws:
      IOException