Class ServicelayerJob

    • Constructor Detail

      • ServicelayerJob

        public ServicelayerJob()
    • 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
      • 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)