Package org.codelibs.fess.indexer
Class IndexUpdater
- java.lang.Object
-
- java.lang.Thread
-
- org.codelibs.fess.indexer.IndexUpdater
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
-
Field Summary
Fields Modifier and Type Field Description protected ClickLogBhvclickLogBhvprotected org.codelibs.fess.crawler.service.DataService<org.codelibs.fess.crawler.entity.EsAccessResult>dataServiceprotected longdocumentSizeprotected longexecuteTimeprotected FavoriteLogBhvfavoriteLogBhvprotected booleanfinishCrawlingprotected List<String>finishedSessionIdListprotected IndexingHelperindexingHelperprotected intmaxErrorCountprotected intmaxIndexerErrorCountprotected SearchEngineClientsearchEngineClientprotected List<String>sessionIdListprotected SystemHelpersystemHelperprotected org.codelibs.fess.crawler.service.UrlFilterServiceurlFilterServiceprotected org.codelibs.fess.crawler.service.UrlQueueService<org.codelibs.fess.crawler.entity.EsUrlQueue>urlQueueService-
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description IndexUpdater()
-
Method Summary
-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
Field Detail
-
searchEngineClient
protected SearchEngineClient searchEngineClient
-
dataService
protected org.codelibs.fess.crawler.service.DataService<org.codelibs.fess.crawler.entity.EsAccessResult> dataService
-
urlQueueService
protected org.codelibs.fess.crawler.service.UrlQueueService<org.codelibs.fess.crawler.entity.EsUrlQueue> urlQueueService
-
urlFilterService
protected org.codelibs.fess.crawler.service.UrlFilterService urlFilterService
-
clickLogBhv
protected ClickLogBhv clickLogBhv
-
favoriteLogBhv
protected FavoriteLogBhv favoriteLogBhv
-
systemHelper
protected SystemHelper systemHelper
-
indexingHelper
protected IndexingHelper indexingHelper
-
finishCrawling
protected boolean finishCrawling
-
executeTime
protected long executeTime
-
documentSize
protected long documentSize
-
maxIndexerErrorCount
protected int maxIndexerErrorCount
-
maxErrorCount
protected int maxErrorCount
-
-
Method Detail
-
init
@PostConstruct public void init()
-
destroy
@PreDestroy public void destroy()
-
addFinishedSessionId
public void addFinishedSessionId(String sessionId)
-
ingest
protected Map<String,Object> ingest(org.codelibs.fess.crawler.entity.AccessResult<String> accessResult, Map<String,Object> map)
-
getExecuteTime
public long getExecuteTime()
-
setFinishCrawling
public void setFinishCrawling(boolean finishCrawling)
-
getDocumentSize
public long getDocumentSize()
-
setUncaughtExceptionHandler
public void setUncaughtExceptionHandler(Thread.UncaughtExceptionHandler eh)
- Overrides:
setUncaughtExceptionHandlerin classThread
-
setDefaultUncaughtExceptionHandler
public static void setDefaultUncaughtExceptionHandler(Thread.UncaughtExceptionHandler eh)
-
setMaxIndexerErrorCount
public void setMaxIndexerErrorCount(int maxIndexerErrorCount)
-
addDocBoostMatcher
public void addDocBoostMatcher(DocBoostMatcher rule)
-
setCrawlerList
public void setCrawlerList(List<org.codelibs.fess.crawler.Crawler> crawlerList)
-
-