Nuxeo ECM Projects 5.6-RC1

org.nuxeo.ecm.platform.video.service
Class VideoConversionWork

java.lang.Object
  extended by org.nuxeo.ecm.core.work.AbstractWork
      extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.nuxeo.ecm.core.work.api.Work
Work.Progress, Work.State
 
Field Summary
static String CATEGORY_VIDEO_CONVERSION
           
 
Constructor Summary
VideoConversionWork(VideoConversionId id)
           
 
Method Summary
 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.
 
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
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

CATEGORY_VIDEO_CONVERSION

public static final String CATEGORY_VIDEO_CONVERSION
See Also:
Constant Field Values
Constructor Detail

VideoConversionWork

public VideoConversionWork(VideoConversionId id)
Method Detail

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

Nuxeo ECM Projects 5.6-RC1

Copyright © 2012 Nuxeo SA. All Rights Reserved.