public abstract class AbstractScheduleJob extends FineScheduleJob
限定符和类型 | 字段和说明 |
---|---|
static FineLoggerProvider |
log |
构造器和说明 |
---|
AbstractScheduleJob() |
限定符和类型 | 方法和说明 |
---|---|
void |
dealWithException(ScheduleTask scheduleTask,
java.lang.Class<? extends com.fr.third.v2.org.quartz.Job> jobClass,
boolean skip)
处理异常情况(重启)
|
abstract void |
doJob(com.fr.third.v2.org.quartz.JobExecutionContext jobExecutionContext) |
java.lang.String |
getTaskLockName(com.fr.third.v2.org.quartz.JobExecutionContext context) |
void |
recordError(ScheduleTask scheduleTask,
java.lang.Exception exception,
java.lang.Class<? extends com.fr.third.v2.org.quartz.Job> jobClass,
boolean isSkip,
java.lang.String currentUserName,
RunType runType)
记录错误信息
|
void |
recordSuccess(ScheduleTask scheduleTask,
java.lang.String currentUserName,
RunType runType)
记录成功执行信息
|
void |
recordThreadError(java.lang.Exception exc)
记录线程超时退出
|
void |
restartJob(ScheduleTask scheduleTask,
java.lang.Class<? extends com.fr.third.v2.org.quartz.Job> jobClass)
重启定时任务
|
void |
run(com.fr.third.v2.org.quartz.JobExecutionContext context,
ClusterNode node) |
execute
public static FineLoggerProvider log
public void run(com.fr.third.v2.org.quartz.JobExecutionContext context, ClusterNode node)
run
在类中 FineScheduleJob
public java.lang.String getTaskLockName(com.fr.third.v2.org.quartz.JobExecutionContext context)
getTaskLockName
在类中 FineScheduleJob
public abstract void doJob(com.fr.third.v2.org.quartz.JobExecutionContext jobExecutionContext)
public void recordError(ScheduleTask scheduleTask, java.lang.Exception exception, java.lang.Class<? extends com.fr.third.v2.org.quartz.Job> jobClass, boolean isSkip, java.lang.String currentUserName, RunType runType)
scheduleTask
- 任务exception
- 异常jobClass
- job类isSkip
- 是否为跳过currentUserName
- 当前用户名runType
- 日志运行类型public void recordSuccess(ScheduleTask scheduleTask, java.lang.String currentUserName, RunType runType)
scheduleTask
- 任务currentUserName
- 当前用户名称runType
- 日志运行类型public void recordThreadError(java.lang.Exception exc)
exc
- 异常public void dealWithException(ScheduleTask scheduleTask, java.lang.Class<? extends com.fr.third.v2.org.quartz.Job> jobClass, boolean skip)
scheduleTask
- 任务对象jobClass
- job classskip
- 是否跳过public void restartJob(ScheduleTask scheduleTask, java.lang.Class<? extends com.fr.third.v2.org.quartz.Job> jobClass)
scheduleTask
- 任务jobClass
- job类