public class FulltextUpdaterWork extends AbstractWork
SessionImpl#getFulltextSimpleWork
or through
FulltextExtractorWork
) into the fulltext table.
This is done single-threaded through the use of a WorkManager
queue
with only one thread.
Work.Progress, Work.State
Constructor and Description |
---|
FulltextUpdaterWork(String repositoryName,
String docId,
String indexName,
boolean isSimpleText,
String text,
boolean isJob) |
Modifier and Type | Method and Description |
---|---|
String |
getCategory()
Gets the category for this work.
|
int |
getRetryCount()
Gets the number of times that this Work instance can be retried in case
of concurrent update exceptions.
|
String |
getTitle()
Gets a human-readable name for this work instance.
|
void |
retryableWork()
This method, along with
AbstractWork.getRetryCount() , should be implemented if
the work instance can be retried in case of concurrent update exceptions. |
cleanUp, closeSession, commitOrRollbackTransaction, equals, getCompletionTime, getDocument, getDocuments, getId, getProgress, getSchedulePath, getSchedulingTime, getStartTime, getState, getStatus, getUserId, getWorkInstanceState, hashCode, initSession, initSession, isDocumentTree, isSuspending, isWorkInstanceSuspended, rollbackAndRetryTransaction, setDocument, setDocument, setDocuments, setProgress, setSchedulePath, setStatus, setWorkInstanceState, setWorkInstanceSuspending, startTransaction, suspended, toString, work
public String getCategory()
Work
Used to choose an execution queue.
getCategory
in interface Work
getCategory
in class AbstractWork
null
for the defaultpublic String getTitle()
Work
public int getRetryCount()
AbstractWork
getRetryCount
in class AbstractWork
AbstractWork.retryableWork()
public void retryableWork() throws Exception
AbstractWork
AbstractWork.getRetryCount()
, should be implemented if
the work instance can be retried in case of concurrent update exceptions.retryableWork
in class AbstractWork
Exception
AbstractWork.getRetryCount()
Copyright © 2013 Nuxeo SA. All Rights Reserved.