Package org.codelibs.fess.indexer
Class IndexUpdater
- java.lang.Object
-
- java.lang.Thread
-
- org.codelibs.fess.indexer.IndexUpdater
-
- All Implemented Interfaces:
java.lang.Runnable
public class IndexUpdater extends java.lang.Thread
-
-
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 java.util.List<java.lang.String>finishedSessionIdListprotected IndexingHelperindexingHelperprotected intmaxErrorCountprotected intmaxIndexerErrorCountprotected java.util.List<java.lang.String>sessionIdListprotected SystemHelpersystemHelperprotected org.codelibs.fess.crawler.service.UrlFilterServiceurlFilterServiceprotected org.codelibs.fess.crawler.service.UrlQueueService<org.codelibs.fess.crawler.entity.EsUrlQueue>urlQueueService
-
Constructor Summary
Constructors Constructor Description IndexUpdater()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddBoostValue(java.util.Map<java.lang.String,java.lang.Object> map, float documentBoost)protected voidaddClickCountField(java.util.Map<java.lang.String,java.lang.Object> doc)voidaddDocBoostMatcher(DocBoostMatcher rule)protected voidaddFavoriteCountField(java.util.Map<java.lang.String,java.lang.Object> map)voidaddFinishedSessionId(java.lang.String sessionId)voiddestroy()longgetDocumentSize()longgetExecuteTime()java.util.List<java.lang.String>getSessionIdList()voidrun()voidsetCrawlerList(java.util.List<org.codelibs.fess.crawler.Crawler> crawlerList)static voidsetDefaultUncaughtExceptionHandler(java.lang.Thread.UncaughtExceptionHandler eh)voidsetFinishCrawling(boolean finishCrawling)voidsetMaxIndexerErrorCount(int maxIndexerErrorCount)voidsetSessionIdList(java.util.List<java.lang.String> sessionIdList)voidsetUncaughtExceptionHandler(java.lang.Thread.UncaughtExceptionHandler eh)protected voidupdateDocument(java.util.Map<java.lang.String,java.lang.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
-
sessionIdList
protected java.util.List<java.lang.String> sessionIdList
-
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
-
finishedSessionIdList
protected java.util.List<java.lang.String> finishedSessionIdList
-
-
Method Detail
-
destroy
@PreDestroy public void destroy()
-
addFinishedSessionId
public void addFinishedSessionId(java.lang.String sessionId)
-
run
public void run()
- Specified by:
runin interfacejava.lang.Runnable- Overrides:
runin classjava.lang.Thread
-
updateDocument
protected void updateDocument(java.util.Map<java.lang.String,java.lang.Object> map)
-
addBoostValue
protected void addBoostValue(java.util.Map<java.lang.String,java.lang.Object> map, float documentBoost)
-
addClickCountField
protected void addClickCountField(java.util.Map<java.lang.String,java.lang.Object> doc)
-
addFavoriteCountField
protected void addFavoriteCountField(java.util.Map<java.lang.String,java.lang.Object> map)
-
getExecuteTime
public long getExecuteTime()
-
getSessionIdList
public java.util.List<java.lang.String> getSessionIdList()
-
setSessionIdList
public void setSessionIdList(java.util.List<java.lang.String> sessionIdList)
-
setFinishCrawling
public void setFinishCrawling(boolean finishCrawling)
-
getDocumentSize
public long getDocumentSize()
-
setUncaughtExceptionHandler
public void setUncaughtExceptionHandler(java.lang.Thread.UncaughtExceptionHandler eh)
- Overrides:
setUncaughtExceptionHandlerin classjava.lang.Thread
-
setDefaultUncaughtExceptionHandler
public static void setDefaultUncaughtExceptionHandler(java.lang.Thread.UncaughtExceptionHandler eh)
-
setMaxIndexerErrorCount
public void setMaxIndexerErrorCount(int maxIndexerErrorCount)
-
addDocBoostMatcher
public void addDocBoostMatcher(DocBoostMatcher rule)
-
setCrawlerList
public void setCrawlerList(java.util.List<org.codelibs.fess.crawler.Crawler> crawlerList)
-
-