Package org.sakaiproject.search.api
Interface SearchIndexBuilderWorker
-
public interface SearchIndexBuilderWorker
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcheckRunning()Check running, and ping the thread if in a wait statevoiddestroy()destroy the search index builder worker and release all resourcesStringgetCurrentDocument()StringgetCurrentElapsed()StringgetLastDocument()StringgetLastElapsed()longgetLastEventTime()Get the ms time of the last search add/remove event (excluding master events)longgetLastIndex()booleangetLockTransaction(long lifetime)booleangetLockTransaction(long nodeLifetime, boolean forceLock)StringgetNowIndexing()longgetStartDocIndex()booleanisLocalLock()booleanisRunning()Should the thread be runningbooleanremoveWorkerLock()forge the removal of the worker lockvoidsetLastIndex(long l)voidsetNowIndexing(String reference)voidsetStartDocIndex(long startDocIndex)voidupdateNodeLock(long l)
-
-
-
Method Detail
-
checkRunning
void checkRunning()
Check running, and ping the thread if in a wait state
-
isRunning
boolean isRunning()
Should the thread be running
-
destroy
void destroy()
destroy the search index builder worker and release all resources
-
removeWorkerLock
boolean removeWorkerLock()
forge the removal of the worker lock- Returns:
-
getLastEventTime
long getLastEventTime()
Get the ms time of the last search add/remove event (excluding master events)- Returns:
-
getLockTransaction
boolean getLockTransaction(long lifetime)
- Parameters:
lifetime-- Returns:
-
getLockTransaction
boolean getLockTransaction(long nodeLifetime, boolean forceLock)- Parameters:
nodeLifetime-forceLock- force the lock to be taken even if there are no items in the queue- Returns:
-
updateNodeLock
void updateNodeLock(long l) throws SQLException- Parameters:
l-- Throws:
SQLException
-
setLastIndex
void setLastIndex(long l)
- Parameters:
l-
-
setStartDocIndex
void setStartDocIndex(long startDocIndex)
- Parameters:
startDocIndex-
-
setNowIndexing
void setNowIndexing(String reference)
- Parameters:
reference-
-
getLastIndex
long getLastIndex()
- Returns:
-
getNowIndexing
String getNowIndexing()
- Returns:
-
getStartDocIndex
long getStartDocIndex()
- Returns:
-
getLastDocument
String getLastDocument()
-
getLastElapsed
String getLastElapsed()
-
getCurrentDocument
String getCurrentDocument()
-
getCurrentElapsed
String getCurrentElapsed()
-
isLocalLock
boolean isLocalLock()
- Returns:
-
-