Class RecomputeTranscodedVideosComputation
- java.lang.Object
-
- org.nuxeo.lib.stream.computation.AbstractComputation
-
- org.nuxeo.ecm.core.bulk.action.computation.AbstractBulkComputation
-
- org.nuxeo.ecm.platform.video.computation.RecomputeTranscodedVideosComputation
-
- All Implemented Interfaces:
Computation
public class RecomputeTranscodedVideosComputation extends AbstractBulkComputation
Computation that fills the conversions in theVideoConstants.TRANSCODED_VIDEOS_PROPERTY
videos property- Since:
- 11.5
-
-
Field Summary
Fields Modifier and Type Field Description protected List<String>
conversionNames
protected EventService
eventService
static String
NAME
static String
PARAM_CONVERSION_NAMES
static String
PARAM_XPATH
protected VideoService
videoService
protected String
xpath
-
Fields inherited from class org.nuxeo.ecm.core.bulk.action.computation.AbstractBulkComputation
command, commands, delta, SELECT_DOCUMENTS_IN
-
Fields inherited from class org.nuxeo.lib.stream.computation.AbstractComputation
INPUT_1, INPUT_2, INPUT_3, INPUT_NULL, metadata, OUTPUT_1, OUTPUT_2, OUTPUT_3, OUTPUT_4
-
-
Constructor Summary
Constructors Constructor Description RecomputeTranscodedVideosComputation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
compute(CoreSession session, List<String> ids, Map<String,Serializable> properties)
protected Duration
getBatchTransactionTimeout()
protected void
saveRendition(CoreSession session, IdRef docId, String conversionName, TranscodedVideo transcodedVideo)
void
startBucket(String bucketKey)
Can be overridden to init stuff before processing the bucket-
Methods inherited from class org.nuxeo.ecm.core.bulk.action.computation.AbstractBulkComputation
endBucket, getCommand, getCurrentCommand, isAbortedCommand, loadDocuments, loadDocumentsOneByOne, loginSystemOrUser, processBatchOfDocuments, processFailure, processRecord, updateStatus
-
Methods inherited from class org.nuxeo.lib.stream.computation.AbstractComputation
init, metadata, processRetry, processTimer
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.nuxeo.lib.stream.computation.Computation
destroy, signalStop
-
-
-
-
Field Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
PARAM_XPATH
public static final String PARAM_XPATH
- See Also:
- Constant Field Values
-
PARAM_CONVERSION_NAMES
public static final String PARAM_CONVERSION_NAMES
- See Also:
- Constant Field Values
-
xpath
protected String xpath
-
videoService
protected VideoService videoService
-
eventService
protected EventService eventService
-
-
Method Detail
-
getBatchTransactionTimeout
protected Duration getBatchTransactionTimeout()
- Overrides:
getBatchTransactionTimeout
in classAbstractBulkComputation
- Returns:
- the transaction timeout to use to process the bucket, <= 0 for the default
-
startBucket
public void startBucket(String bucketKey)
Description copied from class:AbstractBulkComputation
Can be overridden to init stuff before processing the bucket- Overrides:
startBucket
in classAbstractBulkComputation
-
compute
protected void compute(CoreSession session, List<String> ids, Map<String,Serializable> properties)
- Specified by:
compute
in classAbstractBulkComputation
-
saveRendition
protected void saveRendition(CoreSession session, IdRef docId, String conversionName, TranscodedVideo transcodedVideo)
-
-