Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for setUrlQueue (0.19 sec)

  1. fess-crawler/src/test/java/org/codelibs/fess/crawler/interval/impl/HostIntervalControllerTest.java

         */
        public void test_delayBeforeProcessing() {
            // 同時実行数
            final int numTasks = 100;
            // インターバル
            final Long waittime = 100L;
    
            CrawlingParameterUtil.setUrlQueue(new UrlQueueImpl());
            final UrlQueue q = CrawlingParameterUtil.getUrlQueue();
            for (int i = 0; i < numTasks; i++) {
                q.setUrl("http://example.com");
            }
    
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  2. fess-crawler/src/main/java/org/codelibs/fess/crawler/util/CrawlingParameterUtil.java

        private CrawlingParameterUtil() {
        }
    
        public static UrlQueue<?> getUrlQueue() {
            return URL_QUEUE_THREAD_LOCAL.get();
        }
    
        public static void setUrlQueue(final UrlQueue<?> urlQueue) {
            if (urlQueue == null) {
                URL_QUEUE_THREAD_LOCAL.remove();
            } else {
                URL_QUEUE_THREAD_LOCAL.set(urlQueue);
            }
        }
    
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  3. fess-crawler/src/main/java/org/codelibs/fess/crawler/CrawlerThread.java

                                continue;
                            }
    
                            startCrawling();
    
                            // set urlQueue to thread
                            CrawlingParameterUtil.setUrlQueue(urlQueue);
    
                            if (crawlerContext.intervalController != null) {
                                crawlerContext.intervalController.delay(IntervalController.PRE_PROCESSING);
                            }
    
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Sat Oct 12 01:41:37 UTC 2024
    - 15.5K bytes
    - Viewed (0)
Back to top