public class VideoConversionWork extends AbstractWork
Work.Progress, Work.State
Modifier and Type | Field and Description |
---|---|
static String |
CATEGORY_VIDEO_CONVERSION |
Constructor and Description |
---|
VideoConversionWork(VideoConversionId id) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
String |
getCategory()
Gets the category for this work.
|
String |
getTitle()
Gets a human-readable name for this work instance.
|
int |
hashCode() |
void |
work()
This method should implement the actual work done by the
Work
instance. |
afterRun, awaitTermination, beforeRun, cleanUp, getCompletionTime, getData, getDocuments, getPrincipal, getProgress, getSchedulingTime, getStartTime, getState, getStatus, run, setCanceled, setData, suspend, toString
public static final String CATEGORY_VIDEO_CONVERSION
public VideoConversionWork(VideoConversionId id)
public String getCategory()
Work
Used to choose a thread pool queue.
getCategory
in interface Work
getCategory
in class AbstractWork
null
for the defaultpublic String getTitle()
Work
public void work() throws ClientException
AbstractWork
Work
instance.
It should periodically call #setProgress()
to report its
progress.
To allow for suspension by the WorkManager
, it should
periodically call AbstractWork.isSuspending()
, and if true call
#suspended()
with saved state data and return early.
work
in class AbstractWork
ClientException
Copyright © 2012 Nuxeo SA. All Rights Reserved.