Class IndexerTask
java.lang.Object
com.logicaldoc.core.task.Task
com.logicaldoc.core.task.AbstractDocumentProcessor
com.logicaldoc.core.searchengine.indexer.IndexerTask
- All Implemented Interfaces:
- Runnable
This task enlists all non-indexed documents and performs the indexing
- Since:
- 4.0
- Author:
- Marco Meschieri - LogicalDOC
- 
Field SummaryFieldsFields inherited from class com.logicaldoc.core.task.TaskSTATUS_IDLE, STATUS_RUNNING, STATUS_STOPPING
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidbooleanConcrete implementations must override this method declaring if the task supports multiple instances running concurrently.booleanConcrete implementations must override this method declaring if the task is indeterminate.static String[]Prepares the query to search the documents to be indexedprepareReport(Locale locale) voidrunTask()Methods inherited from class com.logicaldoc.core.task.TaskaddTaskListener, getCompletionPercentage, getConfig, getName, getProgress, getReportRecipients, getScheduling, getSize, getStatus, isInterrupted, isInterruptRequested, isRunning, isSendActivityReport, notifyReport, removeTaskListener, run, save, saveWork, setReportRecipients, setSendActivityReport, setSize
- 
Field Details- 
NAME- See Also:
 
 
- 
- 
Constructor Details- 
IndexerTaskpublic IndexerTask()
 
- 
- 
Method Details- 
isIndeterminatepublic boolean isIndeterminate()Description copied from class:TaskConcrete implementations must override this method declaring if the task is indeterminate. An indeterminate task is not able to compute it's time length- Overrides:
- isIndeterminatein class- AbstractDocumentProcessor
- Returns:
- true if the task is indeterminate
 
- 
isConcurrentpublic boolean isConcurrent()Description copied from class:TaskConcrete implementations must override this method declaring if the task supports multiple instances running concurrently. tHIbernat- Overrides:
- isConcurrentin class- AbstractDocumentProcessor
- Returns:
- true if the task is concurrent
 
- 
interruptpublic void interrupt()- Overrides:
- interruptin class- AbstractDocumentProcessor
 
- 
runTask- Overrides:
- runTaskin class- AbstractDocumentProcessor
- Throws:
- TaskException
 
- 
prepareQueryPrepares the query to search the documents to be indexed- Returns:
- array composed by the query to execute and the sorting expression
 
- 
prepareReport- Overrides:
- prepareReportin class- AbstractDocumentProcessor
 
 
-