public class Y2YSyncMasterJobPerformable extends AbstractJobPerformable<Y2YSyncCronJobModel> implements TypeAwareJobPerformable
flexibleSearchService, modelService, sessionService| Constructor and Description |
|---|
Y2YSyncMasterJobPerformable() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
createDefaultJob()
If method returns
true then the initialization will create a default Job item of the given type. |
java.lang.String |
getType()
Must return an existing subtype of
ServicelayerJobModel as String. |
PerformResult |
perform(Y2YSyncCronJobModel cronJob)
The execution body for a
ServicelayerJob. |
void |
setChangeDetectionService(ChangeDetectionService changeDetectionService) |
void |
setMediaService(MediaService mediaService) |
void |
setSyncTaskFactory(SyncTaskFactory syncTaskFactory) |
clearAbortRequestedIfNeeded, isAbortable, isPerformable, setFlexibleSearchService, setModelService, setSessionServicepublic PerformResult perform(Y2YSyncCronJobModel 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<Y2YSyncCronJobModel>perform in class AbstractJobPerformable<Y2YSyncCronJobModel>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.public void setChangeDetectionService(ChangeDetectionService changeDetectionService)
public void setMediaService(MediaService mediaService)
public void setSyncTaskFactory(SyncTaskFactory syncTaskFactory)
public java.lang.String getType()
TypeAwareJobPerformableServicelayerJobModel as String.getType in interface TypeAwareJobPerformablepublic boolean createDefaultJob()
TypeAwareJobPerformabletrue then the initialization will create a default Job item of the given type.
If your specific Job type requires specific parameters you have to return false.createDefaultJob in interface TypeAwareJobPerformableCopyright © 2018 SAP SE. All Rights Reserved.