Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 17 for eventIn (0.03 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/helper/CoordinatorHelperTest.java

            coordinatorHelper.addEventHandler("config_updated", event -> {
                receivedData.set(event.data);
                receivedInstanceId.set(event.instanceId);
            });
    
            final EventInfo event = new EventInfo();
            event.name = "config_updated";
            event.data = "web_config";
            event.instanceId = "sender@host1";
            coordinatorHelper.dispatchEvent(event);
    
    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)
  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/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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. src/main/java/org/codelibs/fess/api/chat/ChatApiManager.java

        /**
         * Sends a Server-Sent Event (SSE) to the client.
         *
         * @param writer the print writer to write the event to
         * @param event the event name
         * @param data the event data to serialize as JSON
         */
        protected void sendSseEvent(final PrintWriter writer, final String event, final Map<String, Object> data) {
            try {
                writer.write("event: " + event + "\n");
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 06:06:55 GMT 2026
    - 25.8K bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/fess/util/LogNotificationAppender.java

        }
    
        @Override
        public void append(final LogEvent event) {
            final String loggerName = event.getLoggerName();
            if (loggerName != null) {
                for (final String excluded : EXCLUDED_LOGGERS) {
                    if (loggerName.startsWith(excluded)) {
                        return;
                    }
                }
            }
    
            if (!event.getLevel().isMoreSpecificThan(getEffectiveMinLevel())) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 14:36:23 GMT 2026
    - 6K bytes
    - Click Count (0)
Back to Top