Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for crawlerClient (0.08 sec)

  1. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/CrawlerClient.java

    import java.util.Map;
    
    import org.codelibs.fess.crawler.entity.RequestData;
    import org.codelibs.fess.crawler.entity.ResponseData;
    
    /**
     * @author shinsuke
     *
     */
    public interface CrawlerClient extends AutoCloseable {
    
        void setInitParameterMap(Map<String, Object> params);
    
        ResponseData execute(RequestData data);
    
        @Override
        default void close() throws Exception {
            // nothing
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 1K bytes
    - Viewed (0)
  2. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/CrawlerClientFactoryWrapper.java

        }
    
        @Override
        public void addClient(final List<String> regexList, final CrawlerClient client) {
            factory.addClient(regexList, client);
        }
    
        @Override
        public CrawlerClient getClient(final String url) {
            return factory.getClient(url);
        }
    
        @Override
        public void setClientMap(final Map<Pattern, CrawlerClient> clientMap) {
            factory.setClientMap(clientMap);
        }
    
        @Override
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  3. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/CrawlerClientFactory.java

            if (StringUtil.isBlank(regex)) {
                throw new CrawlerSystemException("A regular expression is null.");
            }
            if (client == null) {
                throw new CrawlerSystemException("CrawlerClient is null.");
            }
            int current = 0;
            boolean added = false;
            final Map<Pattern, CrawlerClient> newClientMap = new LinkedHashMap<>();
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:47:32 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  4. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/FaultTolerantClient.java

    import org.slf4j.Logger;
    import org.slf4j.LoggerFactory;
    
    /**
     * @author shinsuke
     *
     */
    public class FaultTolerantClient implements CrawlerClient {
    
        private static final Logger logger = LoggerFactory.getLogger(FaultTolerantClient.class);
    
        protected CrawlerClient client;
    
        protected int maxRetryCount = 5;
    
        protected long retryInterval = 500;
    
        protected RequestListener listener;
    
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  5. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/CrawlerClientFactoryTest.java

            clientFactory.addClient("storage:.*", container.getComponent("storageClient"));
        }
    
        public void test_getClient() {
            String url;
            CrawlerClient client;
    
            url = "http://hoge.com/";
            client = clientFactory.getClient(url);
            assertNotNull(client);
            assertTrue(client instanceof FaultTolerantClient);
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  6. fess-crawler-lasta/src/main/resources/crawler/client.xml

    		<property name="soTimeout">30000</property>
    	</component>
    	<component name="httpClient"
    		class="org.codelibs.fess.crawler.client.FaultTolerantClient" instance="prototype">
    		<property name="crawlerClient">internalHttpClient</property>
    		<property name="maxRetryCount">5</property>
    		<property name="retryInterval">500</property>
    	</component>
    
    	<component name="fsClient"
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Tue Aug 08 12:54:47 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  7. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/CrawlerClientCreator.java

            if (logger.isDebugEnabled()) {
                logger.debug("loading {}", componentName);
            }
            CrawlerClient client = null;
            try {
                client = crawlerContainer.getComponent(componentName);
                crawlerClientFactory.addClient(regex, client);
            } catch (final Exception e) {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:47:32 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  8. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/AbstractCrawlerClient.java

    import org.slf4j.Logger;
    import org.slf4j.LoggerFactory;
    
    import jakarta.annotation.Resource;
    
    /**
     * @author shinsuke
     *
     */
    public abstract class AbstractCrawlerClient implements CrawlerClient {
    
        private static final Logger logger = LoggerFactory.getLogger(AbstractCrawlerClient.class);
    
        protected static final String APPLICATION_OCTET_STREAM = "application/octet-stream";
    
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:47:32 UTC 2024
    - 5.9K bytes
    - Viewed (0)
Back to top