Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for urlQueueService (0.14 sec)

  1. fess-crawler/src/main/java/org/codelibs/fess/crawler/service/UrlQueueService.java

     */
    package org.codelibs.fess.crawler.service;
    
    import java.util.List;
    
    import org.codelibs.fess.crawler.entity.UrlQueue;
    
    /**
     * @author shinsuke
     *
     */
    public interface UrlQueueService<QUEUE extends UrlQueue<?>> {
    
        void updateSessionId(String oldSessionId, String newSessionId);
    
        void add(String sessionId, String url);
    
        void insert(QUEUE urlQueue);
    
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  2. fess-crawler/src/test/java/org/codelibs/fess/crawler/CrawlerTest.java

    import org.dbflute.utflute.core.PlainTestCase;
    
    public class CrawlerTest extends PlainTestCase {
    
        public Crawler crawler;
    
        public DataService dataService;
    
        public UrlQueueService urlQueueService;
    
        public FileTransformer fileTransformer;
    
        private StandardCrawlerContainer container;
    
        @Override
        protected void setUp() throws Exception {
            super.setUp();
    
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 18K bytes
    - Viewed (0)
  3. fess-crawler/src/main/java/org/codelibs/fess/crawler/CrawlerThread.java

    import org.codelibs.fess.crawler.service.UrlQueueService;
    import org.codelibs.fess.crawler.util.CrawlingParameterUtil;
    
    import jakarta.annotation.Resource;
    
    /**
     * @author shinsuke
     *
     */
    public class CrawlerThread implements Runnable {
    
        @Resource
        protected UrlQueueService<UrlQueue<?>> urlQueueService;
    
        @Resource
        protected DataService<AccessResult<?>> dataService;
    
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Sat Oct 12 01:41:37 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  4. fess-crawler/src/main/java/org/codelibs/fess/crawler/service/impl/UrlQueueServiceImpl.java

    import org.codelibs.fess.crawler.helper.MemoryDataHelper;
    import org.codelibs.fess.crawler.service.UrlQueueService;
    import org.slf4j.Logger;
    import org.slf4j.LoggerFactory;
    
    import jakarta.annotation.Resource;
    
    /**
     * @author shinsuke
     *
     */
    public class UrlQueueServiceImpl implements UrlQueueService<UrlQueueImpl<Long>> {
    
        private static final Logger logger = LoggerFactory.getLogger(UrlQueueServiceImpl.class);
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:47:32 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  5. fess-crawler/src/main/java/org/codelibs/fess/crawler/util/CrawlingParameterUtil.java

                ROBOT_CONTEXT_THREAD_LOCAL.set(crawlerContext);
            }
        }
    
        public static UrlQueueService<UrlQueue<?>> getUrlQueueService() {
            return URL_QUEUE_SERVICE_THREAD_LOCAL.get();
        }
    
        public static void setUrlQueueService(final UrlQueueService<UrlQueue<?>> urlQueueService) {
            if (urlQueueService == null) {
                URL_QUEUE_SERVICE_THREAD_LOCAL.remove();
            } else {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  6. fess-crawler-lasta/src/test/java/org/codelibs/fess/crawler/CrawlerTest.java

    public class CrawlerTest extends LastaDiTestCase {
    
        @Resource
        private Crawler crawler;
    
        @Resource
        private DataService dataService;
    
        @Resource
        private UrlQueueService urlQueueService;
    
        @Resource
        private FileTransformer fileTransformer;
    
        @Resource
        private CrawlerContainer crawlerContainer;
    
        @Override
        protected String prepareConfigFile() {
            return "crawler.xml";
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:47:32 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  7. fess-crawler/src/main/java/org/codelibs/fess/crawler/Crawler.java

        private static final Logger logger = LoggerFactory.getLogger(Crawler.class);
    
        @Resource
        protected UrlQueueService<UrlQueue<?>> urlQueueService;
    
        @Resource
        protected DataService<AccessResult<?>> dataService;
    
        @Resource
        protected UrlFilter urlFilter;
    
        @Resource
        protected RuleManager ruleManager;
    
        @Resource
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:47:32 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  8. fess-crawler-opensearch/src/test/java/org/codelibs/fess/crawler/service/impl/OpenSearchUrlQueueServiceTest.java

            urlQueue.setUrl("http://www.example.com/");
    
            urlQueueService.insert(urlQueue);
            assertTrue(fesenClient.prepareSearch("fess_crawler.queue").setQuery(QueryBuilders.termQuery("sessionId", "sessionId")).setSize(0)
                    .execute().actionGet().getHits().getTotalHits().value > 0);
    
            urlQueueService.delete("sessionId");
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Nov 07 04:44:10 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  9. fess-crawler/src/main/java/org/codelibs/fess/crawler/processor/impl/DefaultResponseProcessor.java

            final CrawlerContext crawlerContext = CrawlingParameterUtil.getCrawlerContext();
            final UrlQueueService<UrlQueue<?>> urlQueueService = CrawlingParameterUtil.getUrlQueueService();
            if (!urlQueueService.visited(urlQueue)) {
                if (checkAccessCount(crawlerContext)) {
                    final AccessResult<?> accessResult = createAccessResult(responseData, resultData);
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:47:32 UTC 2024
    - 9K bytes
    - Viewed (0)
  10. fess-crawler-opensearch/src/test/java/org/codelibs/fess/crawler/CrawlerTest.java

    public class CrawlerTest extends LastaDiTestCase {
    
        @Resource
        private Crawler crawler;
    
        @Resource
        private DataService dataService;
    
        @Resource
        private UrlQueueService urlQueueService;
    
        @Resource
        private UrlFilterService urlFilterService;
    
        @Resource
        private FileTransformer fileTransformer;
    
        @Resource
        private FesenClient fesenClient;
    
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Nov 07 04:44:10 UTC 2024
    - 7.7K bytes
    - Viewed (0)
Back to top