Package com.logicaldoc.core.searchengine
Class IndexOptimizer
java.lang.Object
com.logicaldoc.core.task.Task
com.logicaldoc.core.searchengine.IndexOptimizer
- All Implemented Interfaces:
Runnable
This task optimises all indexes
- Since:
- 3.5.0
- Author:
- Marco Meschieri - LogicalDOC
-
Field Summary
Fields inherited from class com.logicaldoc.core.task.Task
STATUS_IDLE, STATUS_RUNNING, STATUS_STOPPING
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Concrete implementations must override this method declaring if the task supports multiple instances running concurrently.boolean
Concrete implementations must override this method declaring if the task is indeterminate.void
setDocumentDao
(DocumentDAO documentDao) void
setIndexer
(SearchEngine indexer) Methods inherited from class com.logicaldoc.core.task.Task
addTaskListener, getCompletionPercentage, getConfig, getName, getProgress, getReportRecipients, getScheduling, getSize, getStatus, interrupt, isInterrupted, isInterruptRequested, isRunning, isSendActivityReport, notifyReport, removeTaskListener, run, save, saveWork, setConfig, setLockManager, setReportRecipients, setSendActivityReport, setSender, setSize, setSystemLoadMonitor, setUserDao
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
IndexOptimizer
public IndexOptimizer()
-
-
Method Details
-
getIndexer
-
setIndexer
-
isIndeterminate
public boolean isIndeterminate()Description copied from class:Task
Concrete implementations must override this method declaring if the task is indeterminate. An indeterminate task is not able to compute it's time length- Specified by:
isIndeterminate
in classTask
- Returns:
- true if the task is indeterminate
-
isConcurrent
public boolean isConcurrent()Description copied from class:Task
Concrete implementations must override this method declaring if the task supports multiple instances running concurrently.- Specified by:
isConcurrent
in classTask
- Returns:
- true if the task is concurrent
-
setDocumentDao
-