org.nuxeo.ecm.platform.video.service
Class VideoConversionWork
java.lang.Object
org.nuxeo.ecm.core.work.AbstractWork
org.nuxeo.ecm.platform.video.service.VideoConversionWork
- All Implemented Interfaces:
- Runnable, Work
public class VideoConversionWork
- extends AbstractWork
Work running a defined video conversion.
- Since:
- 5.6
Methods inherited from class org.nuxeo.ecm.core.work.AbstractWork |
afterRun, awaitTermination, beforeRun, cleanUp, getCompletionTime, getData, getDocuments, getPrincipal, getProgress, getSchedulingTime, getStartTime, getState, getStatus, run, setCanceled, setData, suspend, toString |
CATEGORY_VIDEO_CONVERSION
public static final String CATEGORY_VIDEO_CONVERSION
- See Also:
- Constant Field Values
VideoConversionWork
public VideoConversionWork(VideoConversionId id)
getCategory
public String getCategory()
- Description copied from interface:
Work
- Gets the category for this work.
Used to choose a thread pool queue.
- Specified by:
getCategory
in interface Work
- Overrides:
getCategory
in class AbstractWork
- Returns:
- the category, or
null
for the default
getTitle
public String getTitle()
- Description copied from interface:
Work
- Gets a human-readable name for this work instance.
- Returns:
- a human-readable name
work
public void work()
throws ClientException
- Description copied from class:
AbstractWork
- This method should implement the actual work done by the
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.
- Specified by:
work
in class AbstractWork
- Throws:
ClientException
equals
public boolean equals(Object other)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
Copyright © 2012 Nuxeo SA. All Rights Reserved.