Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for setCrawlerContext (0.18 sec)

  1. fess-crawler/src/main/java/org/codelibs/fess/crawler/util/CrawlingParameterUtil.java

                URL_QUEUE_THREAD_LOCAL.set(urlQueue);
            }
        }
    
        public static CrawlerContext getCrawlerContext() {
            return ROBOT_CONTEXT_THREAD_LOCAL.get();
        }
    
        public static void setCrawlerContext(final CrawlerContext crawlerContext) {
            if (crawlerContext == null) {
                ROBOT_CONTEXT_THREAD_LOCAL.remove();
            } else {
                ROBOT_CONTEXT_THREAD_LOCAL.set(crawlerContext);
            }
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  2. fess-crawler/src/main/java/org/codelibs/fess/crawler/Crawler.java

            for (int i = 0; i < crawlerContext.getNumOfThread(); i++) {
                final CrawlerThread crawlerThread = crawlerContainer.getComponent("crawlerThread");
                crawlerThread.setCrawlerContext(crawlerContext);
                crawlerThread.setClientFactory(clientFactory);
                threads[i] =
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:47:32 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  3. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/http/HcHttpClientTest.java

                final String sessionId = "id1";
                urlFilter.init(sessionId);
                crawlerContext.setUrlFilter(urlFilter);
                CrawlingParameterUtil.setCrawlerContext(crawlerContext);
                httpClient.init();
                httpClient.processRobotsTxt(url);
                assertEquals(1, crawlerContext.getRobotsTxtUrlSet().size());
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu May 09 09:28:25 UTC 2024
    - 8.8K bytes
    - Viewed (0)
Back to top