Interface JobPerformable<T extends CronJobModel>
- All Known Subinterfaces:
RuleEngineJobPerformable<T>
- All Known Implementing Classes:
AbstractBackofficeSolrIndexerJob,AbstractChangeProcessorJobPerformable,AbstractCouponNotificationJob,AbstractIndexerJob,AbstractJobPerformable,AbstractMaintenanceJobPerformable,AbstractNotificationJob,AbstractRuleEngineJob,AbstractSnIndexerJob,AbstractStockLevelStatusJob,AfterRetentionCleanupJobPerformable,B2BAcceleratorCartToOrderJob,BackofficeSolrIndexerDeleteJob,BackofficeSolrIndexerUpdateJob,CartRemovalJob,CartToOrderJob,ChangeDetectionJobPerformable,CleanUpFraudOrderJob,CleanUpJobPerformable,CleanUpProcessTaskLogPerformable,CleanUpVerificationCode,CMSVersionGCPerformable,CompareCatalogVersionsJobPerformable,CompositeJobPerformable,ConsumeAllChangesJobPerformable,CouponNotificationJob,CreateAuditReportJobPerformable,CxDefaultPersonalizationCalculationJob,CxUpdateSegmentsJob,DataSupplierJobPerformable,DefaultExportDataJobPerformable,DefaultMerchCategoryExporter,DefaultMerchProductDirectoryCategoryExporter,DefaultUploadDataJobPerformable,DeleteConvertedMediasJob,DeleteDocumentFileJobPerformable,DynamicMaintenanceJobPerformable,E2EChangeAnalysisFilesJob,ExcelImportJobPerformable,ExpiredInterestsCleanUpJob,ExtractMediaMetaDataJob,FullSnIndexerJob,GenerateOrgUnitPathsJob,GenericMaintenanceJobPerformable,GeocodingJob,IncrementalSnIndexerJob,KymaUpdateConsumedDestinationsJobPerformable,LDIFGroupImportJobPerformable,LDIFImportJobPerformable,MediaConversionJob,MoveMediaJobPerformable,OldCartRemovalJob,OldCartRemovalJob,OldPaymentSubscriptionResultRemovalJob,OldPaymentSubscriptionResultRemovalJob,OrderScheduleJob,OrderStatusUpdateCleanerJob,OrderStatusUpdateCleanerJob,OrderTemplateToOrderJob,OutboundSyncCronJobPerformable,OutboundSyncJobSupervisor,PersistenceCleanUpJob,ProductExpressUpdateCleanerJob,ProductExpressUpdateCleanerJob,QuoteExpiredJobPerformable,QuoteToExpireSoonJobPerformable,RemoveCatalogVersionJobPerformable,RemoveItemsJobPerformable,ResetMaxOrderQuantityJob,RuleEngineAllModulesInitJobPerformable,RuleEngineCompilePublishJobPerformable,RuleEngineModuleInitJobPerformable,RuleEngineModuleSyncJobPerformable,RuleEngineUndeployJobPerformable,ScriptChangeConsumptionJobPerformable,ScriptingJobPerformable,SessionEventsRemovalJob,SetMaxOrderQuantityJob,SiteMapMediaJob,SolrExtIndexerJob,SolrIndexerHotUpdateJob,SolrIndexerJob,SolrQueryStatisticsCollectorJob,StockLevelStatusJob,TestAbortableJobPerformable,UncollectedOrdersJob,VendorOrderExportJob,VendorRatingCalculationJob,Y2YSyncMasterJobPerformable
public interface JobPerformable<T extends CronJobModel>
Marks a class as performable by a
ServicelayerJob item. The implementing class has to be registered at global
spring context. At the job item itself only the bean id is configured.-
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks whether the execution is implemented abortable.booleanChecks whether the execution can be performed at the moment.The execution body for aServicelayerJob.
-
Method Details
-
perform
The execution body for aServicelayerJob. 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.- Parameters:
cronJob- the related CronJob in whose context the execution will be performed.- Returns:
- a
PerformResultthat indicates whether theexecutionwas successfully executed or not and has finished or not.
-
isPerformable
boolean isPerformable()Checks whether the execution can be performed at the moment.- Returns:
- true if the execution is ready
-
isAbortable
boolean isAbortable()Checks whether the execution is implemented abortable.- Returns:
- true if the execution can be aborted
-