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 FessEsClientfessEsClientprotected booleanfinishCrawlingprotected List<String>finishedSessionIdListprotected IndexingHelperindexingHelperprotected intmaxErrorCountprotected intmaxIndexerErrorCountprotected 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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddBoostValue(Map<String,Object> map, float documentBoost)protected voidaddClickCountField(Map<String,Object> doc)voidaddDocBoostMatcher(DocBoostMatcher rule)protected voidaddFavoriteCountField(Map<String,Object> map)voidaddFinishedSessionId(String sessionId)voiddestroy()longgetDocumentSize()longgetExecuteTime()List<String>getSessionIdList()voidrun()voidsetCrawlerList(List<org.codelibs.fess.crawler.Crawler> crawlerList)static voidsetDefaultUncaughtExceptionHandler(Thread.UncaughtExceptionHandler eh)voidsetFinishCrawling(boolean finishCrawling)voidsetMaxIndexerErrorCount(int maxIndexerErrorCount)voidsetSessionIdList(List<String> sessionIdList)voidsetUncaughtExceptionHandler(Thread.UncaughtExceptionHandler eh)protected voidupdateDocument(Map<String,Object> map)-
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
-
fessEsClient
protected FessEsClient fessEsClient
-
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
-
destroy
@PreDestroy public void destroy()
-
addFinishedSessionId
public void addFinishedSessionId(String sessionId)
-
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)
-
-