Class ProgressLogImpl
java.lang.Object
ch.tocco.nice2.tasks.impl.progress.ProgressLogImpl
- All Implemented Interfaces:
ProgressLog
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfindLogEntryByState
(String state) Find a singleLogEntry
for a given state value.Get e (unmodifiable) list containing the log entries.Log a message.Log a message.
-
Constructor Details
-
ProgressLogImpl
-
-
Method Details
-
log
Description copied from interface:ProgressLog
Log a message.Creates a new log entry with status "running". If the last log entry before this new entry is not completed, it will be completed automatically.
- Specified by:
log
in interfaceProgressLog
- Parameters:
textKey
- the key (textressources) of the message to display- Returns:
- the created
LogEntry
-
log
Description copied from interface:ProgressLog
Log a message.Creates a new log entry with status "running". If the last log entry before this new entry is not completed, it will be completed automatically.
- Specified by:
log
in interfaceProgressLog
- Parameters:
textKey
- the key (textressources) of the message to displayvars
- a map with the parameters to replace the placeholders in the log message with- Returns:
- the created
LogEntry
-
getLogEntries
Description copied from interface:ProgressLog
Get e (unmodifiable) list containing the log entries.- Specified by:
getLogEntries
in interfaceProgressLog
- Returns:
- a list containing the log entries.
-
findLogEntryByState
Description copied from interface:ProgressLog
Find a singleLogEntry
for a given state value. This value must uniquely identify the log entry!If more than one result is found, an exception is thrown. Otherwise either the single result is returned or none.
- Specified by:
findLogEntryByState
in interfaceProgressLog
-
findLatestLogEntry
- Specified by:
findLatestLogEntry
in interfaceProgressLog
-