using EntrustSettle.Model; using EntrustSettle.Model.Models; using EntrustSettle.Model.Dtos; using System.Collections.Generic; using System.Threading.Tasks; namespace EntrustSettle.Tasks { /// /// 服务调度接口 /// public interface ISchedulerCenter { /// /// 开启任务调度 /// /// Task> StartScheduleAsync(); /// /// 停止任务调度 /// /// Task> StopScheduleAsync(); /// /// /// /// /// Task> AddScheduleJobAsync(TasksQz sysSchedule); /// /// 停止一个任务 /// /// /// Task> StopScheduleJobAsync(TasksQz sysSchedule); /// /// 检测任务是否存在 /// /// /// Task IsExistScheduleJobAsync(TasksQz sysSchedule); /// /// 暂停指定的计划任务 /// /// /// Task> PauseJob(TasksQz sysSchedule); /// /// 恢复一个任务 /// /// /// Task> ResumeJob(TasksQz sysSchedule); /// /// 获取任务触发器状态 /// /// /// Task> GetTaskStaus(TasksQz sysSchedule); /// /// 获取触发器标识 /// /// /// string GetTriggerState(string key); /// /// 立即执行 一个任务 /// /// /// Task> ExecuteJobAsync(TasksQz tasksQz); } }