Class JobBase

java.lang.Object
net.ideahut.springboot.job.JobBase
All Implemented Interfaces:
org.quartz.Job

public abstract class JobBase extends Object implements org.quartz.Job
  • Field Details

  • Constructor Details

    • JobBase

      public JobBase()
  • Method Details

    • execute

      public void execute(org.quartz.JobExecutionContext context) throws org.quartz.JobExecutionException
      Specified by:
      execute in interface org.quartz.Job
      Throws:
      org.quartz.JobExecutionException
    • mapper

      protected DataMapper mapper()
    • logger

      protected org.slf4j.Logger logger()
    • getApplicationContext

      protected org.springframework.context.ApplicationContext getApplicationContext(org.quartz.JobExecutionContext context)
    • getTrigger

      protected net.ideahut.springboot.job.JobTriggerDto getTrigger(org.quartz.JobExecutionContext context)
    • getConfigValue

      protected <T> T getConfigValue(org.quartz.JobExecutionContext context, Class<T> type, String name, T defaultValue)
    • getConfigValue

      protected <T> T getConfigValue(org.quartz.JobExecutionContext context, Class<T> type, String name)
    • run

      protected abstract void run(org.quartz.JobExecutionContext context) throws Exception
      Throws:
      Exception