|
|
|
@ -7,22 +7,22 @@ import com.hw.job.domain.SysJob;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 定时任务调度信息信息 服务层
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
* @author ruoyi
|
|
|
|
|
*/
|
|
|
|
|
public interface ISysJobService
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* 获取quartz调度器的计划任务
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
* @param job 调度信息
|
|
|
|
|
* @return 调度任务集合
|
|
|
|
|
*/
|
|
|
|
|
public List<SysJob> selectJobList(SysJob job);
|
|
|
|
|
|
|
|
|
|
SysJob selectJobByPlanRepairId(Long planRepairId);
|
|
|
|
|
/**
|
|
|
|
|
* 通过调度任务ID查询调度信息
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
* @param jobId 调度任务ID
|
|
|
|
|
* @return 调度任务对象信息
|
|
|
|
|
*/
|
|
|
|
@ -30,7 +30,7 @@ public interface ISysJobService
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 暂停任务
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
* @param job 调度信息
|
|
|
|
|
* @return 结果
|
|
|
|
|
*/
|
|
|
|
@ -38,7 +38,7 @@ public interface ISysJobService
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 恢复任务
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
* @param job 调度信息
|
|
|
|
|
* @return 结果
|
|
|
|
|
*/
|
|
|
|
@ -46,7 +46,7 @@ public interface ISysJobService
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 删除任务后,所对应的trigger也将被删除
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
* @param job 调度信息
|
|
|
|
|
* @return 结果
|
|
|
|
|
*/
|
|
|
|
@ -54,7 +54,7 @@ public interface ISysJobService
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 批量删除调度信息
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
* @param jobIds 需要删除的任务ID
|
|
|
|
|
* @return 结果
|
|
|
|
|
*/
|
|
|
|
@ -62,7 +62,7 @@ public interface ISysJobService
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 任务调度状态修改
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
* @param job 调度信息
|
|
|
|
|
* @return 结果
|
|
|
|
|
*/
|
|
|
|
@ -70,7 +70,7 @@ public interface ISysJobService
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 立即运行任务
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
* @param job 调度信息
|
|
|
|
|
* @return 结果
|
|
|
|
|
*/
|
|
|
|
@ -78,7 +78,7 @@ public interface ISysJobService
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 新增任务
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
* @param job 调度信息
|
|
|
|
|
* @return 结果
|
|
|
|
|
*/
|
|
|
|
@ -86,7 +86,7 @@ public interface ISysJobService
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 更新任务
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
* @param job 调度信息
|
|
|
|
|
* @return 结果
|
|
|
|
|
*/
|
|
|
|
@ -94,9 +94,9 @@ public interface ISysJobService
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 校验cron表达式是否有效
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
* @param cronExpression 表达式
|
|
|
|
|
* @return 结果
|
|
|
|
|
*/
|
|
|
|
|
public boolean checkCronExpressionIsValid(String cronExpression);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|