com.jladder.scheduler.JobSession Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jladder Show documentation
Show all versions of jladder Show documentation
with java,a low code SDK,通用低代码开发包
package com.jladder.scheduler;
import com.jladder.lang.func.*;
import org.quartz.*;
import java.util.Date;
import java.util.List;
import java.util.Map;
public abstract class JobSession {
public abstract Scheduler getScheduler();
///
/// 启动调度
///
public abstract void startScheduler();
///
/// 暂停全部调度
///
public abstract void pauseAll();
///
/// 恢复全部调度
///
public abstract void resumeAll();
///
/// 强制关闭调度
///
public abstract void shutdownScheduler();
///
/// 任务完成后关闭任务
///
///
public abstract void shutdownScheduler(boolean waitForJobsToComplete);
///
/// 获取全部任务组名称
///
///
public abstract List getAllGroupName();
///
/// 获取全部触发器名称
///
///
public abstract List getAllTriggerGroupNames();
///
/// 获取任务组下全部调度
///
///
///
public abstract List getAllJobDetail(String groupName);
///
/// 获取触发器组下全部触发器
///
///
///
public abstract List getAllTrigger(String triggerName);
///
/// 获取全部任务
///
///
public abstract List getAllSchedule();
///
/// 获取调度任务
///
/// 分组名称
/// 任务名称
///
public abstract JobDetail getScheduleJob(String jobName,String groupName);
///
/// 获取触发器
///
///
///
///
public abstract CronTrigger getTrigger(String jobName,String groupName);
///
/// 删除任务
///
/// 任务名称
/// 分组名称
///
public abstract boolean deleteScheduleJob(String jobName,String groupName);
///
/// 暂停任务
///
/// 分组名
/// 任务名称
public abstract void pauseScheduleJob(String jobName,String groupName);
///
/// 恢复任务
///
/// 任务名称
/// 分组名
public abstract void resumeScheduleJob(String groupName, String jobName);
///
/// 创建任务调度
///
/// 开始时间
/// 执行过程
///
public abstract Tuple2 createScheduleJob(Date startTime, Action0 action);
///
/// 创建任务调度
///
/// 任务信息
/// 执行过程
///
public abstract Tuple2 createScheduleJob(ScheduleJob schedu, Func2 fun);
///
/// 创建任务调度
///
/// 任务信息
/// 执行过程
///
public abstract Tuple2 createScheduleJobWithContext(ScheduleJob schedu, Func2 fun);
///
/// 创建任务调度
///
/// 任务信息
/// 执行过程
///
public abstract Tuple2 createScheduleJob(ScheduleJob schedu, Func1 fun);
///
/// 创建任务调度
///
/// 任务信息
/// 执行过程
///
public abstract Tuple2 createScheduleJobWithContext(ScheduleJob schedu, Action1 action);
///
/// 创建任务调度
///
/// 任务信息
/// 执行过程
///
public abstract Tuple2 createScheduleJob(ScheduleJob schedu, Action1 action);
///
/// 创建任务
///
///
///
///
///
public abstract Tuple2 createScheduleJob(ScheduleJob schedu, Map param,Class glass);
///
/// 是否存在同名任务
///
///
///
///
public abstract boolean isExistsSchedule(String jobName,String groupName);
///
/// 触发器状态转义
///
///
///
public abstract String transFromEnum(Trigger.TriggerState ts);
///
/// 任务状态转义
///
///
///
public abstract String getJobState(int ts);
///
/// 添加监听
///
///
///
///
///
public abstract void addListener( String jobName, String groupName,T listener);
///
/// 修改定时任务
///
///
public abstract void modifyScheduler(ScheduleJob schedu);
}