Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 31 for events (0.04 seconds)

  1. src/test/java/org/codelibs/fess/util/LogNotificationAppenderTest.java

                    .build();
            appender.append(event);
    
            final List<LogNotificationEvent> events = ComponentUtil.getLogNotificationHelper().drainAll();
            assertEquals(1, events.size());
            assertNotNull(events.get(0).getThrowable());
            assertTrue(events.get(0).getThrowable().contains("RuntimeException"));
            assertTrue(events.get(0).getThrowable().contains("test exception"));
    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)
  2. src/test/java/org/codelibs/fess/job/LogNotificationJobTest.java

            long timestamp = 1700000000000L;
            List<LogNotificationEvent> events = new ArrayList<>();
            events.add(new LogNotificationEvent(timestamp, "ERROR", "org.test", "error msg", null));
            events.add(new LogNotificationEvent(timestamp, "WARN", "org.test", "warn msg", null));
    
            String details = testableJob.testFormatDetails(events);
    
            assertTrue(details.contains("ERROR"));
    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)
  3. src/main/java/org/codelibs/fess/helper/LogNotificationHelper.java

            LogNotificationEvent event;
            while ((event = queue.poll()) != null) {
                events.add(event);
                size.decrementAndGet();
            }
            return events;
        }
    
        /**
         * Represents a captured log event for notification.
         */
        public static class LogNotificationEvent {
    
            private final long timestamp;
    
    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)
  4. src/test/java/org/codelibs/fess/helper/LogNotificationHelperTest.java

            List<LogNotificationEvent> events = helper.drainAll();
            assertEquals(2, events.size());
            assertEquals("message1", events.get(0).getMessage());
            assertEquals("message2", events.get(1).getMessage());
        }
    
        @Test
        public void test_drainAll_empty() {
            LogNotificationHelper helper = new LogNotificationHelper();
            List<LogNotificationEvent> events = helper.drainAll();
    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)
  5. src/main/java/org/codelibs/fess/job/LogNotificationJob.java

         *
         * @param events the list of log notification events
         * @param maxDetailsLength the maximum length of the details string
         * @param maxDisplayEvents the maximum number of events to display
         * @param maxMessageLength the maximum length of each log message
         * @return the formatted details string with summary header and truncated entries
         */
    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)
  6. src/main/java/org/codelibs/fess/timer/LogNotificationTarget.java

                        source.put("level", event.getLevel());
                        source.put("loggerName", event.getLoggerName());
                        source.put("message", event.getMessage());
                        source.put("throwable", event.getThrowable() != null ? event.getThrowable() : "");
                        source.put("timestamp", event.getTimestamp());
    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)
  7. src/main/java/org/codelibs/fess/helper/CoordinatorHelper.java

                    logger.warn("Failed to publish event: eventName={}, status={}", eventName, response.getHttpStatusCode());
                }
            } catch (final Exception e) {
                logger.warn("Failed to publish event: eventName={}", eventName, e);
            }
        }
    
        /**
         * Registers an event handler for the specified event name.
         *
         * @param eventName the event name to handle.
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 06:59:19 GMT 2026
    - 33.3K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/fess/timer/LogNotificationTargetTest.java

            // Add events to buffer
            ComponentUtil.getLogNotificationHelper()
                    .offer(new LogNotificationEvent(System.currentTimeMillis(), "ERROR", "org.test", "should remain", null));
    
            // expired() should skip when disabled
            logNotificationTarget.expired();
    
            // Buffer should still contain the event since disabled check should return early
    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)
  9. .github/workflows/scorecard.yml

    permissions: read-all
    
    jobs:
      analysis:
        name: Scorecard analysis
        runs-on: ubuntu-latest
        permissions:
          # Needed to upload the results to code-scanning dashboard.
          security-events: write
          # Needed to publish results and get a badge (see publish_results below).
          id-token: write
          # Uncomment the permissions below if installing in a private repository.
          # contents: read
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 22:02:44 GMT 2026
    - 2.9K bytes
    - Click Count (0)
  10. src/test/java/org/codelibs/fess/helper/CoordinatorHelperTest.java

            final List<EventInfo> events = helper.fetchNewEvents();
    
            assertEquals(2, events.size());
            assertEquals("config_updated", events.get(0).name);
            assertEquals("node2@host2", events.get(0).instanceId);
            assertEquals("*", events.get(0).targetInstanceId);
            assertEquals(5000L, events.get(0).createdTime);
            assertEquals("web_config", events.get(0).data);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 06:59:19 GMT 2026
    - 58.6K bytes
    - Click Count (0)
Back to Top