public class MediaMetaDataTaskRunner extends java.lang.Object implements TaskRunner<TaskModel>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BEAN_NAME
Spring bean name of this task runner (or an overridden one).
|
| Constructor and Description |
|---|
MediaMetaDataTaskRunner() |
| Modifier and Type | Method and Description |
|---|---|
static TaskModel |
create(MediaModel model)
Creates a new Task with the according context.
|
FlexibleSearchService |
getFlexibleSearchService() |
MediaMetaDataService |
getMediaMetaDataService() |
ModelService |
getModelService() |
void |
handleError(TaskService service,
TaskModel task,
java.lang.Throwable fault) |
void |
run(TaskService service,
TaskModel task) |
void |
setFlexibleSearchService(FlexibleSearchService flexibleSearchService) |
void |
setMediaMetaDataService(MediaMetaDataService mediaMetaDataService) |
void |
setModelService(ModelService modelService) |
protected MediaModel |
toMediaModel(java.lang.Object obj) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitLoggingCtx, isLoggingSupported, stopLoggingCtxpublic static final java.lang.String BEAN_NAME
public static TaskModel create(MediaModel model)
model - the media for which to extract the metadata forTaskModelpublic void handleError(TaskService service, TaskModel task, java.lang.Throwable fault)
handleError in interface TaskRunner<TaskModel>public void run(TaskService service, TaskModel task) throws RetryLaterException
run in interface TaskRunner<TaskModel>RetryLaterExceptionprotected MediaModel toMediaModel(java.lang.Object obj)
public MediaMetaDataService getMediaMetaDataService()
public void setMediaMetaDataService(MediaMetaDataService mediaMetaDataService)
public ModelService getModelService()
public void setModelService(ModelService modelService)
public FlexibleSearchService getFlexibleSearchService()
public void setFlexibleSearchService(FlexibleSearchService flexibleSearchService)
Copyright © 2018 SAP SE. All Rights Reserved.