Class AbstractJobPerformable<T extends CronJobModel>
java.lang.Object
de.hybris.platform.servicelayer.cronjob.AbstractJobPerformable<T>
- All Implemented Interfaces:
JobPerformable<T>
- Direct Known Subclasses:
AbstractChangeProcessorJobPerformable,AbstractIndexerJob,AbstractMaintenanceJobPerformable,AbstractNotificationJob,AbstractRuleEngineJob,AbstractSnIndexerJob,AfterRetentionCleanupJobPerformable,B2BAcceleratorCartToOrderJob,CartRemovalJob,CartToOrderJob,ChangeDetectionJobPerformable,CleanUpFraudOrderJob,CleanUpJobPerformable,CleanUpProcessTaskLogPerformable,CleanUpVerificationCode,CMSVersionGCPerformable,CompareCatalogVersionsJobPerformable,CompositeJobPerformable,CreateAuditReportJobPerformable,CxDefaultPersonalizationCalculationJob,CxUpdateSegmentsJob,DataSupplierJobPerformable,DefaultExportDataJobPerformable,DefaultMerchCategoryExporter,DefaultMerchProductDirectoryCategoryExporter,DefaultUploadDataJobPerformable,DeleteDocumentFileJobPerformable,ExcelImportJobPerformable,ExpiredInterestsCleanUpJob,GenerateOrgUnitPathsJob,GeocodingJob,KymaUpdateConsumedDestinationsJobPerformable,LDIFGroupImportJobPerformable,LDIFImportJobPerformable,MoveMediaJobPerformable,OldCartRemovalJob,OldCartRemovalJob,OldPaymentSubscriptionResultRemovalJob,OldPaymentSubscriptionResultRemovalJob,OrderScheduleJob,OrderStatusUpdateCleanerJob,OrderStatusUpdateCleanerJob,OrderTemplateToOrderJob,OutboundSyncCronJobPerformable,OutboundSyncJobSupervisor,PersistenceCleanUpJob,ProductExpressUpdateCleanerJob,ProductExpressUpdateCleanerJob,QuoteExpiredJobPerformable,QuoteToExpireSoonJobPerformable,RemoveCatalogVersionJobPerformable,RemoveItemsJobPerformable,ResetMaxOrderQuantityJob,ScriptingJobPerformable,SessionEventsRemovalJob,SetMaxOrderQuantityJob,SiteMapMediaJob,SolrExtIndexerJob,SolrQueryStatisticsCollectorJob,TestAbortableJobPerformable,UncollectedOrdersJob,VendorOrderExportJob,VendorRatingCalculationJob,Y2YSyncMasterJobPerformable
public abstract class AbstractJobPerformable<T extends CronJobModel>
extends Object
implements JobPerformable<T>
Abstract implementation of
JobPerformable interface providing ModelService and SessionService
as a member.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected FlexibleSearchServiceprotected ModelServiceprotected SessionService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final booleanclearAbortRequestedIfNeeded(T myCronJob) Checks if givenCronJobModelhas aCronJobModel.REQUESTABORTflag set true -abort request was send for this cron job.booleanChecks whether the execution is implemented abortable.booleanChecks whether the execution can be performed at the moment.abstract PerformResultThe execution body for aServicelayerJob.voidsetFlexibleSearchService(FlexibleSearchService flexibleSearchService) voidsetModelService(ModelService modelService) voidsetSessionService(SessionService sessionService)
-
Field Details
-
modelService
-
sessionService
-
flexibleSearchService
-
-
Constructor Details
-
AbstractJobPerformable
public AbstractJobPerformable()
-
-
Method Details
-
perform
Description copied from interface:JobPerformableThe 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.- Specified by:
performin interfaceJobPerformable<T extends CronJobModel>- 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.
-
isAbortable
public boolean isAbortable()Description copied from interface:JobPerformableChecks whether the execution is implemented abortable.- Specified by:
isAbortablein interfaceJobPerformable<T extends CronJobModel>- Returns:
- true if the execution can be aborted
-
isPerformable
public boolean isPerformable()Description copied from interface:JobPerformableChecks whether the execution can be performed at the moment.- Specified by:
isPerformablein interfaceJobPerformable<T extends CronJobModel>- Returns:
- true if the execution is ready
-
setModelService
-
setSessionService
-
setFlexibleSearchService
-
clearAbortRequestedIfNeeded
Checks if givenCronJobModelhas aCronJobModel.REQUESTABORTflag set true -abort request was send for this cron job. If so then resets this flag to null and returns true. If no abort request abort was send returns false.
-