类 JobHandlerInvoker

java.lang.Object
org.springframework.scheduling.quartz.QuartzJobBean
cn.sinozg.applet.quartz.use.handler.JobHandlerInvoker
所有已实现的接口:
org.quartz.Job

@DisallowConcurrentExecution @PersistJobDataAfterExecution public class JobHandlerInvoker extends org.springframework.scheduling.quartz.QuartzJobBean
基础 Job 调用者,负责调用 JobHandler.execute(String) 执行任务
  • 字段详细资料

    • log

      private static final org.slf4j.Logger log
    • jobLogService

      private JobLogBaseService jobLogService
  • 构造器详细资料

    • JobHandlerInvoker

      public JobHandlerInvoker()
  • 方法详细资料

    • executeInternal

      protected void executeInternal(org.quartz.JobExecutionContext context) throws org.quartz.JobExecutionException
      指定者:
      executeInternal 在类中 org.springframework.scheduling.quartz.QuartzJobBean
      抛出:
      org.quartz.JobExecutionException
    • executeInternal

      private String executeInternal(String beanName, String args) throws Exception
      执行任务
      参数:
      beanName - 名称
      args - 参数
      返回:
      返回结果
      抛出:
      Exception - 异常
    • updateJobLogResultAsync

      private void updateJobLogResultAsync(String jobLogId, String data, Throwable exception, org.quartz.JobExecutionContext context)
      更新 记录日志
      参数:
      jobLogId - logId
      data - 数据
      exception - 异常
      context - 上下文
    • handleException

      private void handleException(Throwable exception, int refireCount, int retryCount, int retryInterval) throws org.quartz.JobExecutionException
      异常处理
      参数:
      exception - 异常
      refireCount - 再试次数
      retryCount - 重试次数
      retryInterval - 重试间隔
      抛出:
      org.quartz.JobExecutionException - 异常