public class DataSupplierJobPerformable extends AbstractJobPerformable<DataSupplierCronJobModel>
flexibleSearchService, sessionService| Constructor and Description |
|---|
DataSupplierJobPerformable(DataSupplierFacade supplierFacade,
ModelService modelService,
MediaService mediaService) |
| Modifier and Type | Method and Description |
|---|---|
PerformResult |
perform(DataSupplierCronJobModel cronJob)
The execution body for a
ServicelayerJob. |
protected void |
savePayload(DataSupplierCronJobModel cronJob,
String payload)
Saves payLoad from
DSSendResult to
DataSupplierCronJobModel.setRecentPayload(CatalogUnawareMediaModel) if cronJob's savePaylod flag is true |
clearAbortRequestedIfNeeded, isAbortable, isPerformable, setFlexibleSearchService, setModelService, setSessionServicepublic DataSupplierJobPerformable(DataSupplierFacade supplierFacade, ModelService modelService, MediaService mediaService)
public PerformResult perform(DataSupplierCronJobModel cronJob)
JobPerformableServicelayerJob. Implement here your execution logic. It can be called
synchronous or asynchronous. So be aware of thread-safety. Method will return a result object saying if the
execution has reached end and if it was successful.perform in interface JobPerformable<DataSupplierCronJobModel>perform in class AbstractJobPerformable<DataSupplierCronJobModel>cronJob - the related CronJob in whose context the execution will be performed.PerformResult that indicates whether the execution was successfully executed
or not and has finished or not.protected void savePayload(DataSupplierCronJobModel cronJob, String payload)
DSSendResult to
DataSupplierCronJobModel.setRecentPayload(CatalogUnawareMediaModel) if cronJob's savePaylod flag is truecronJob - cronJob which runs the jobpayload - generated payLoadCopyright © 2017 SAP SE. All Rights Reserved.