Package org.codelibs.fess.helper
Class CrawlerLogHelper
java.lang.Object
org.codelibs.fess.crawler.helper.impl.LogHelperImpl
org.codelibs.fess.helper.CrawlerLogHelper
- All Implemented Interfaces:
org.codelibs.fess.crawler.helper.LogHelper
public class CrawlerLogHelper
extends org.codelibs.fess.crawler.helper.impl.LogHelperImpl
Helper class for crawler logging operations.
Extends LogHelperImpl to provide specialized logging functionality for crawler operations,
including failure URL tracking and crawler statistics integration.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.codelibs.fess.opensearch.config.exentity.CrawlingConfiggetCrawlingConfig(String sessionCountId) Gets the crawling configuration for the specified session ID.voidprotected voidprocessCleanupCrawling(Object... objs) protected voidprocessCrawlingAccessException(Object... objs) protected voidprocessCrawlingException(Object... objs) protected voidprocessFinishedCrawling(Object... objs) protected voidprocessProcessChildUrlByException(Object... objs) protected voidprocessProcessChildUrlsByException(Object... objs) protected voidprocessStartCrawling(Object... objs) protected org.codelibs.fess.opensearch.config.exentity.FailureUrlstoreFailureUrl(org.codelibs.fess.crawler.CrawlerContext crawlerContext, org.codelibs.fess.crawler.entity.UrlQueue<?> urlQueue, String errorName, Throwable e) Stores a failure URL with error information for later analysis.Methods inherited from class org.codelibs.fess.crawler.helper.impl.LogHelperImpl
processCheckLastModified, processDefault, processFinishedThread, processGetContent, processNoResponseProcessor, processNoRule, processNotModified, processNoUrlInQueue, processProcessResponse, processRedirectLocation, processStartThread, processSystemError, processUnsupportedUrlAtCrawlingStarted
-
Constructor Details
-
CrawlerLogHelper
public CrawlerLogHelper()Creates a new instance of CrawlerLogHelper.
-
-
Method Details
-
log
- Specified by:
login interfaceorg.codelibs.fess.crawler.helper.LogHelper- Overrides:
login classorg.codelibs.fess.crawler.helper.impl.LogHelperImpl
-
processStartCrawling
- Overrides:
processStartCrawlingin classorg.codelibs.fess.crawler.helper.impl.LogHelperImpl
-
processCleanupCrawling
- Overrides:
processCleanupCrawlingin classorg.codelibs.fess.crawler.helper.impl.LogHelperImpl
-
processProcessChildUrlByException
- Overrides:
processProcessChildUrlByExceptionin classorg.codelibs.fess.crawler.helper.impl.LogHelperImpl
-
processProcessChildUrlsByException
- Overrides:
processProcessChildUrlsByExceptionin classorg.codelibs.fess.crawler.helper.impl.LogHelperImpl
-
processFinishedCrawling
- Overrides:
processFinishedCrawlingin classorg.codelibs.fess.crawler.helper.impl.LogHelperImpl
-
processCrawlingAccessException
- Overrides:
processCrawlingAccessExceptionin classorg.codelibs.fess.crawler.helper.impl.LogHelperImpl
-
processCrawlingException
- Overrides:
processCrawlingExceptionin classorg.codelibs.fess.crawler.helper.impl.LogHelperImpl
-
storeFailureUrl
protected org.codelibs.fess.opensearch.config.exentity.FailureUrl storeFailureUrl(org.codelibs.fess.crawler.CrawlerContext crawlerContext, org.codelibs.fess.crawler.entity.UrlQueue<?> urlQueue, String errorName, Throwable e) Stores a failure URL with error information for later analysis.- Parameters:
crawlerContext- the crawler contexturlQueue- the URL queue containing the failed URLerrorName- the name/type of the errore- the throwable that caused the failure- Returns:
- the stored FailureUrl entity
-
getCrawlingConfig
protected org.codelibs.fess.opensearch.config.exentity.CrawlingConfig getCrawlingConfig(String sessionCountId) Gets the crawling configuration for the specified session ID.- Parameters:
sessionCountId- the session count ID- Returns:
- the crawling configuration
-