Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for checkCrawlerStatus (0.08 seconds)

  1. src/main/java/org/codelibs/fess/helper/IntervalControlHelper.java

        /**
         * Checks the crawler status and waits if the crawler is not running.
         * This method blocks until the crawler is running again.
         */
        public void checkCrawlerStatus() {
            while (!crawlerRunning) {
                ThreadUtil.sleepQuietly(crawlerWaitMillis);
            }
        }
    
        /**
         * Applies delay based on the configured interval rules.
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Nov 23 12:34:02 GMT 2025
    - 10K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/helper/IntervalControlHelperTest.java

            helper.setCrawlerWaitMillis(50);
    
            // Test when crawler is running
            assertTrue(helper.isCrawlerRunning());
            long start = System.currentTimeMillis();
            helper.checkCrawlerStatus();
            long end = System.currentTimeMillis();
            assertTrue(end - start < 100); // Should return quickly
    
            // Test when crawler is not running
            helper.setCrawlerRunning(false);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 13.6K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/fess/crawler/interval/FessIntervalController.java

                }
            }
    
            try {
                final IntervalControlHelper intervalControlHelper = ComponentUtil.getIntervalControlHelper();
                intervalControlHelper.checkCrawlerStatus();
                intervalControlHelper.delayByRules();
            } catch (final Exception e) {
                if (logger.isDebugEnabled()) {
                    logger.debug("Failed to apply interval control rules", e);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Nov 19 07:09:17 GMT 2025
    - 5.1K bytes
    - Click Count (0)
Back to Top