Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 7 of 7 for offered (0.04 seconds)

  1. src/test/java/org/codelibs/fess/helper/LogNotificationHelperTest.java

        }
    
        @Test
        public void test_offer_and_drainAll() {
            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();
    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)
  2. src/main/java/org/codelibs/fess/helper/LogNotificationHelper.java

                maxBufferSize = 1000;
            }
            queue.offer(event);
            if (size.incrementAndGet() > maxBufferSize) {
                if (queue.poll() != null) {
                    size.decrementAndGet();
                }
            }
        }
    
        /**
         * Drains all events from the buffer and returns them as a list.
         *
         * @return a list of all buffered events
         */
        public List<LogNotificationEvent> drainAll() {
    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)
  3. src/main/java/org/codelibs/fess/timer/LogNotificationTarget.java

    import org.codelibs.fess.util.ComponentUtil;
    import org.opensearch.action.bulk.BulkRequestBuilder;
    import org.opensearch.action.bulk.BulkResponse;
    
    /**
     * A timer target that periodically flushes buffered log notification events
     * to an OpenSearch index for downstream processing.
     */
    public class LogNotificationTarget implements TimeoutTarget {
    
        /**
         * Default constructor.
         */
    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)
  4. 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)
  5. src/main/java/org/codelibs/fess/app/web/admin/general/EditForm.java

         */
        @Size(max = 1000)
        public String defaultLabelValue;
    
        /**
         * Default sort order for search results.
         * Defines how search results are ordered when no specific sort is requested.
         */
        @Size(max = 1000)
        public String defaultSortValue;
    
        /**
         * Virtual host configuration for multi-tenant setups.
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 02:24:08 GMT 2026
    - 15.8K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/fess/util/LogNotificationAppender.java

                    event.getLevel().name(), //
                    loggerName, //
                    event.getMessage().getFormattedMessage(), //
                    throwableStr //
            );
            helper.offer(notificationEvent);
        }
    
        private Level getEffectiveMinLevel() {
            try {
                final String levelStr = ComponentUtil.getSystemProperties().getProperty("fess.log.notification.level");
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 14:36:23 GMT 2026
    - 6K bytes
    - Click Count (0)
  7. src/main/java/org/codelibs/fess/exec/Crawler.java

         *
         * @param msg the error message to add; ignored if null or blank
         */
        public static void addError(final String msg) {
            if (StringUtil.isNotBlank(msg)) {
                errors.offer(msg);
            }
        }
    
        /**
         * Command-line options container for the crawler application.
         * This class uses args4j annotations to define command-line arguments
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 02:24:08 GMT 2026
    - 32.4K bytes
    - Click Count (0)
Back to Top