package com.ruoyi.schedule.domain;

import lombok.Data;
import org.quartz.JobKey;
import org.quartz.Trigger;

import java.util.List;

/**
 * Job Triggers 对象
 * @author ruoyi
 */
@Data
public class JobTriggers {

    /** JobKey */
    private JobKey jobKey;

    /** Job对应的所有触发器 Trigger */
    private List<TriggerOfJob> triggersOfJob;


    /**
     * 触发器
     * @author ruoyi
     */
    @Data
    public class TriggerOfJob {
        /**
         * 触发器
         */
        private Trigger trigger;

        /**
         * 触发器状态
         */
        private Trigger.TriggerState triggerState;
    }

}
