Class ServicelayerJob

All Implemented Interfaces:
Serializable, Comparable
Direct Known Subclasses:
GeneratedAbstractChangeProcessorJob, GeneratedChangeDetectionJob, GeneratedCreateAuditReportJob, GeneratedDestinationTargetCronJob, GeneratedExcelImportJob, GeneratedMaintenanceCleanupJob, GeneratedProcessTaskLogMaintenanceJob, GeneratedRetentionJob, GeneratedRuleEngineJob, GeneratedScriptingJob, GeneratedY2YSyncJob, OutboundSyncJob, RuleEngineJob

public class ServicelayerJob extends GeneratedServicelayerJob
See Also:
  • Constructor Details

    • ServicelayerJob

      public ServicelayerJob()
  • Method Details

    • performCronJob

      protected CronJob.CronJobResult performCronJob(CronJob cronJob) throws AbortCronJobException
      Description copied from class: Job
      You have to implement this method in your Job. Here you can execute the job. You have to return a CronJobResult that indicates whether the Job was successfully executed or not.
      Specified by:
      performCronJob in class Job
      Parameters:
      cronJob - the CronJob to execute
      Returns:
      a CronJobResult that indicates whether the Job was successfully executed or not.

      Throws:
      AbortCronJobException
      See Also:
    • canPerform

      protected boolean canPerform(CronJob cronJob)
      Description copied from class: Job
      This method is called before a Job is performed. If you override this method you can check the things that are necessary for the performing of your Job. Default value is true.
      Overrides:
      canPerform in class Job
      Parameters:
      cronJob - the actual CronJob
      Returns:
      true if this Job is performable, false otherwise. de.hybris.platform.servicelayer.cronjob.CronJobService
    • canUndo

      protected boolean canUndo(CronJob cronJob)
      Description copied from class: Job
      Returns true, if the specified CronJob can be undone. Overwrite this method of you want to undo your CronJob. Default value is false
      Overrides:
      canUndo in class Job
      Parameters:
      cronJob - the CronJob to undo changes for
      Returns:
      true if this Job is undoable, false otherwise.
    • isAbortable

      public boolean isAbortable(CronJob conJob)
      Description copied from class: Job
      Tells whether this currently executed job is abortable. As default this method returns false. Override to implement abortable jobs.
      Overrides:
      isAbortable in class Job
      Parameters:
      conJob - the current execution of this job.
      Returns:
      true if the cronjob is running and the job supports aborting via GeneratedCronJob.setRequestAbort(boolean)
    • getPerformable

      protected JobPerformable getPerformable()