package net.northking.cctp.executePlan.quartz;

import net.northking.cctp.executePlan.db.entity.AtuPlanInfo;
import org.quartz.JobExecutionContext;

/**
 * <p>Title: QuartzJobExecution</p>
 * <p>Description: </p>
 *
 * @Author chenjianfeng
 * @Version V1.0
 * @Date 2022/12/29
 * <p>Copyright (c) 京北方信息技术股份有限公司 Corporation 2022 . All rights reserved.</p>
 */

public class QuartzJobExecution extends AbstractQuartzJob{
    /**
     * 执行方法，由子类重载
     *
     * @param context  工作执行上下文对象
     * @param planInfo 系统计划任务
     * @throws Exception 执行过程中的异常
     */
    @Override
    protected void doExecute(JobExecutionContext context, AtuPlanInfo planInfo) throws Exception {
        log.info("调度计划[{}-{}]开始执行派发操作", planInfo.getId(), planInfo.getPlanName());
        JobInvokeUtil.invokeMethod(planInfo);
    }
}
