- Sort Score
- Num 10 results
- Language All
Results 1 - 8 of 8 for LogNotificationEvent (0.11 seconds)
-
src/main/java/org/codelibs/fess/helper/LogNotificationHelper.java
/** * Drains all events from the buffer and returns them as a list. * * @return a list of all buffered events */ public List<LogNotificationEvent> drainAll() { final List<LogNotificationEvent> events = new ArrayList<>(); LogNotificationEvent event; while ((event = queue.poll()) != null) { events.add(event); size.decrementAndGet(); }Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Mar 26 02:24:08 GMT 2026 - 5.3K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/helper/LogNotificationHelperTest.java
LogNotificationHelper helper = new LogNotificationHelper(); helper.offer(new LogNotificationEvent(1000L, "ERROR", "com.example.Foo", "message1", "throwable1")); helper.offer(new LogNotificationEvent(2000L, "WARN", "com.example.Bar", "message2", null)); List<LogNotificationEvent> events = helper.drainAll(); assertEquals(2, events.size());
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Mar 26 02:24:08 GMT 2026 - 6.3K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/timer/LogNotificationTarget.java
for (int i = 0; i < events.size(); i += BATCH_SIZE) { final List<LogNotificationEvent> batch = events.subList(i, Math.min(i + BATCH_SIZE, events.size())); final BulkRequestBuilder bulkRequest = client.prepareBulk(); for (final LogNotificationEvent event : batch) { final Map<String, Object> source = new HashMap<>();Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Mar 26 02:24:08 GMT 2026 - 4.5K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/util/LogNotificationAppenderTest.java
assertEquals(0, events.size()); } @Test public void test_append_nonExcludedLogger() { final LogEvent event = createLogEvent(Level.ERROR, "org.codelibs.fess.helper.SystemHelper", "not excluded"); appender.append(event); final List<LogNotificationEvent> events = ComponentUtil.getLogNotificationHelper().drainAll();
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Mar 26 14:36:23 GMT 2026 - 10.7K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/job/LogNotificationJobTest.java
long base = 1700000000000L; List<LogNotificationEvent> events = new ArrayList<>(); events.add(new LogNotificationEvent(base, "ERROR", "org.test.A", "first", null)); events.add(new LogNotificationEvent(base + 1000, "WARN", "org.test.B", "second", null)); events.add(new LogNotificationEvent(base + 2000, "ERROR", "org.test.C", "third", null));Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Mar 26 14:36:23 GMT 2026 - 10.5K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/timer/LogNotificationTargetTest.java
// Add events to buffer ComponentUtil.getLogNotificationHelper() .offer(new LogNotificationEvent(System.currentTimeMillis(), "ERROR", "org.test", "msg1", null)); ComponentUtil.getLogNotificationHelper() .offer(new LogNotificationEvent(System.currentTimeMillis(), "WARN", "org.test", "msg2", null));Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Mar 26 02:24:08 GMT 2026 - 4.7K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/job/LogNotificationJob.java
final Map<String, List<LogNotificationEvent>> eventsByLevel = events.stream().collect(Collectors.groupingBy(LogNotificationEvent::getLevel)); for (final Map.Entry<String, List<LogNotificationEvent>> entry : eventsByLevel.entrySet()) { final String level = entry.getKey(); final List<LogNotificationEvent> levelEvents = entry.getValue();
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Mar 26 02:24:08 GMT 2026 - 9.4K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/util/LogNotificationAppender.java
if (throwableStr.length() > MAX_THROWABLE_LENGTH) { throwableStr = throwableStr.substring(0, MAX_THROWABLE_LENGTH); } } final LogNotificationEvent notificationEvent = new LogNotificationEvent( // event.getTimeMillis(), // event.getLevel().name(), // loggerName, // event.getMessage().getFormattedMessage(), //
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Mar 26 14:36:23 GMT 2026 - 6K bytes - Click Count (0)