Package org.codelibs.fess.job
Class LogNotificationJob
java.lang.Object
org.codelibs.fess.job.LogNotificationJob
Job for sending log notifications.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute()Executes the log notification job.protected StringformatDetails(List<LogNotificationHelper.LogNotificationEvent> events, int maxDetailsLength, int maxDisplayEvents, int maxMessageLength) Formats a list of log notification events into a human-readable summary string.
-
Constructor Details
-
LogNotificationJob
public LogNotificationJob()Default constructor.
-
-
Method Details
-
execute
Executes the log notification job.- Returns:
- the execution result
-
formatDetails
protected String formatDetails(List<LogNotificationHelper.LogNotificationEvent> events, int maxDetailsLength, int maxDisplayEvents, int maxMessageLength) Formats a list of log notification events into a human-readable summary string.- Parameters:
events- the list of log notification eventsmaxDetailsLength- the maximum length of the details stringmaxDisplayEvents- the maximum number of events to displaymaxMessageLength- the maximum length of each log message- Returns:
- the formatted details string with summary header and truncated entries
-