Class MediaMetaDataTaskRunner
java.lang.Object
de.hybris.platform.mediaconversion.metadata.MediaMetaDataTaskRunner
- All Implemented Interfaces:
TaskRunner<TaskModel>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TaskModelcreate(MediaModel model) Creates a new Task with the according context.voidhandleError(TaskService service, TaskModel task, Throwable fault) voidrun(TaskService service, TaskModel task) voidsetFlexibleSearchService(FlexibleSearchService flexibleSearchService) voidsetMediaMetaDataService(MediaMetaDataService mediaMetaDataService) voidsetModelService(ModelService modelService) protected MediaModeltoMediaModel(Object obj) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.task.TaskRunner
initLoggingCtx, isLoggingSupported, stopLoggingCtx
-
Field Details
-
BEAN_NAME
Spring bean name of this task runner (or an overridden one).- See Also:
-
-
Constructor Details
-
MediaMetaDataTaskRunner
public MediaMetaDataTaskRunner()
-
-
Method Details
-
create
Creates a new Task with the according context. Calling this method does not schedule the Task.- Parameters:
model- the media for which to extract the metadata for- Returns:
- a new (not-yet-scheduled)
TaskModel
-
handleError
- Specified by:
handleErrorin interfaceTaskRunner<TaskModel>
-
run
- Specified by:
runin interfaceTaskRunner<TaskModel>- Throws:
RetryLaterException
-
toMediaModel
-
getMediaMetaDataService
-
setMediaMetaDataService
-
getModelService
-
setModelService
-
getFlexibleSearchService
-
setFlexibleSearchService
-