using System; using System.Collections.Generic; using System.Threading.Tasks; using WIDESEA_Common.CutomerModel; using WIDESEA_Core.Utilities; namespace WIDESEA_WCS { /// /// 服务调度接口 /// public interface ISchedulerCenterServer : IDisposable { /// /// 开启任务调度 /// /// Task StartScheduleAsync(); /// /// 停止任务调度 /// /// Task StopScheduleAsync(); /// /// 添加一个任务 /// /// /// Task AddScheduleJobAsync(JobOptions job); /// /// 停止一个任务 /// /// /// Task StopScheduleJobAsync(JobOptions job); /// /// 检测任务是否存在 /// /// /// Task IsExistScheduleJobAsync(JobOptions job); /// /// 暂停指定的计划任务 /// /// /// Task PauseJob(JobOptions job); /// /// 恢复一个任务 /// /// /// Task ResumeJob(JobOptions job); /// /// 获取任务触发器状态 /// /// /// Task> GetTaskStaus(JobOptions job); /// /// 获取触发器标识 /// /// /// string GetTriggerState(string key); /// /// 立即执行 一个任务 /// /// /// Task ExecuteJobAsync(JobOptions job); } }