Class LoggingSessionHolder
-
- All Implemented Interfaces:
public final class LoggingSessionHolderA static class responsible for managing running logging sessions.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classLoggingSessionHolder.Companion
-
Field Summary
Fields Modifier and Type Field Description public final static StringTAGpublic final static LoggingSessionHolder.CompanionCompanion
-
Constructor Summary
Constructors Constructor Description LoggingSessionHolder()
-
Method Summary
Modifier and Type Method Description final static UnitnewLoggingSessionStarted(RemoteLogger logger)Signals the start of a new logging session and adds the provided logger to the list of running loggers. final static UnitloggingSessionStopped(RemoteLogger logger)Signals the end of a logging session and removes the associated logger from the list of running loggers. final static List<RemoteLogger>getRunningSessions()Retrieves a list of currently active logging sessions. final static BooleanisCurrentlyModifyingFile(String fileName)Checks if there is a logging session currently modifying the specified fileName. -
-
Method Detail
-
newLoggingSessionStarted
final static Unit newLoggingSessionStarted(RemoteLogger logger)
Signals the start of a new logging session and adds the provided logger to the list of running loggers.
- Parameters:
logger- The RemoteLogger representing the new logging session.
-
loggingSessionStopped
final static Unit loggingSessionStopped(RemoteLogger logger)
Signals the end of a logging session and removes the associated logger from the list of running loggers.
- Parameters:
logger- The RemoteLogger representing the logging session to be stopped.
-
getRunningSessions
final static List<RemoteLogger> getRunningSessions()
Retrieves a list of currently active logging sessions.
- Returns:
List of RemoteLogger instances representing currently active logging sessions.
-
isCurrentlyModifyingFile
final static Boolean isCurrentlyModifyingFile(String fileName)
Checks if there is a logging session currently modifying the specified fileName.
- Parameters:
fileName- The name of the file to check.- Returns:
trueif a logging session is currently modifying the file, otherwisefalse.
-
-
-
-