Class UnPerformableJob

  • All Implemented Interfaces:
    TriggerableJob, java.io.Serializable, java.lang.Comparable

    public class UnPerformableJob
    extends TestJob
    this job isn't performable, at all!!!
    See Also:
    Serialized Form
    • Constructor Detail

      • UnPerformableJob

        public UnPerformableJob()
    • Method Detail

      • 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
      • performCronJob

        protected CronJob.CronJobResult performCronJob​(CronJob cronJob)
        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.
        Overrides:
        performCronJob in class TestJob
        Parameters:
        cronJob - the CronJob to execute
        Returns:
        a CronJobResult that indicates whether the Job was successfully executed or not.

        See Also:
        CronJob.getFinishedResult(boolean), CronJob.getAbortResult()