java.lang.Object
org.springframework.scheduling.quartz.QuartzJobBean
tr.com.havelsan.javarch.report.quartz.context.scheduling.job.HvlScheduledQuartzJob
All Implemented Interfaces:
org.quartz.Job

public abstract class HvlScheduledQuartzJob extends org.springframework.scheduling.quartz.QuartzJobBean
The type is a Quartz job bean which is used to execute job instance.
  • Field Details

    • LOGGER

      protected static final org.slf4j.Logger LOGGER
      The constant LOGGER.
    • JOB_EXECUTION_MAX_RETRY_COUNT

      public static final Integer JOB_EXECUTION_MAX_RETRY_COUNT
      The constant JOB_EXECUTION_MAX_RETRY_COUNT.
  • Constructor Details

    • HvlScheduledQuartzJob

      public HvlScheduledQuartzJob()
  • Method Details

    • jobName

      protected abstract String jobName()
      Job name string.
      Returns:
      the string
    • retryWhenOnError

      protected abstract boolean retryWhenOnError()
      Retry when on error boolean.
      Returns:
      the boolean
    • executeJobInstance

      protected abstract void executeJobInstance(org.quartz.JobExecutionContext context)
      Execute job instance.
      Parameters:
      context - the context
    • schedulerName

      protected final String schedulerName()
      Scheduler name string.
      Returns:
      the string
    • executeInternal

      protected final void executeInternal(org.quartz.JobExecutionContext context) throws org.quartz.JobExecutionException
      Specified by:
      executeInternal in class org.springframework.scheduling.quartz.QuartzJobBean
      Throws:
      org.quartz.JobExecutionException
    • getJobExecutionData

      protected final <T> T getJobExecutionData(org.quartz.JobExecutionContext context, String jobDataKey, Class<T> jobDataTypeClass)
      Gets job execution data.
      Type Parameters:
      T - the type parameter
      Parameters:
      context - the context
      jobDataKey - the job data key
      jobDataTypeClass - the job data type class
      Returns:
      the job execution data
    • getJobExecutionData

      protected final <T> Optional<T> getJobExecutionData(String jobDataKey, Class<T> jobDataTypeClass, org.quartz.JobExecutionContext context)
      Gets job execution data.
      Type Parameters:
      T - the type parameter
      Parameters:
      jobDataKey - the job data key
      jobDataTypeClass - the job data type class
      context - the context
      Returns:
      the job execution data
    • allowConcurrentExecution

      protected boolean allowConcurrentExecution()
      Allow concurrent execution boolean.
      Returns:
      the boolean