Class LogViewerManager

java.lang.Object
io.goobi.viewer.model.log.LogViewerManager

public class LogViewerManager extends Object
Application-scoped singleton that manages log file tailers and WebSocket sessions. One Tailer thread per active LogFile, shared across all sessions watching that file. Lines are buffered until the next log entry header arrives, so multi-line entries (stacktraces) are sent as a single complete message.
  • Constructor Details

    • LogViewerManager

      public LogViewerManager()
  • Method Details

    • registerSession

      public void registerSession(LogFile logFile, Session session)
    • unregisterSession

      public void unregisterSession(LogFile logFile, Session session)
    • hasActiveSessions

      public boolean hasActiveSessions(LogFile logFile)
    • shutdown

      public void shutdown()