public abstract class ReportletJob
extends java.lang.Object
implements com.fr.third.org.quartz.Job
限定符和类型 | 字段和说明 |
---|---|
protected java.util.List<Parameter> |
arrayParaList |
protected static java.util.Set |
fireTimeAndTaskID |
protected com.fr.third.org.quartz.JobDataMap |
jobDataMap |
protected static int |
MILLISECOND |
protected static int |
MINUTES |
protected java.util.List<java.util.Map> |
record_list |
protected Reportlet |
reportlet |
protected java.lang.String |
reportPath |
protected java.util.Date |
scheduledFireTime |
protected ScheduleTask |
scheduleTask |
protected long |
taskID |
构造器和说明 |
---|
ReportletJob() |
限定符和类型 | 方法和说明 |
---|---|
protected boolean |
checkExecuteFormula(java.util.Map parameterMap,
ResultWorkBook book)
根据报表计算结果,检查是否满足公式条件
如果失败,会记录失败信息
|
protected void |
dealWithException(java.lang.Exception e)
记录错误信息,并设置失败重启
|
boolean |
doDispatch(com.fr.third.org.quartz.JobExecutionContext context) |
protected java.lang.Boolean |
evaluateFormula(BaseFormula formula,
ResultWorkBook book)
判断公式条件
|
void |
execute(com.fr.third.org.quartz.JobExecutionContext context)
执行定时任务,具体执行步骤相同,只是执行报表方式不一样
|
protected abstract void |
executeReport()
执行报表
|
protected void |
exportViewScheduleSavedInfo(java.io.File saveDirectory,
ViewScheduleSavedInfo viewScheduleSavedInfo) |
protected java.lang.String |
getExecuteFailLog()
定时任务执行条件判断时的记录信息
|
protected Parameter[] |
getExecuteParameter()
获取报表执行参数,
如果设置了执行公式,则封装成一个执行参数,添加进参数数组
|
ScheduleTask |
getScheduleTask() |
protected void |
logReportPathError()
获取报表路径错误时的记录信息
|
protected void |
logTipInfo()
提示信息
|
protected void |
restartTask()
重启
|
protected static final int MINUTES
protected static final int MILLISECOND
protected static java.util.Set fireTimeAndTaskID
protected ScheduleTask scheduleTask
protected java.lang.String reportPath
protected java.util.Date scheduledFireTime
protected com.fr.third.org.quartz.JobDataMap jobDataMap
protected long taskID
protected Reportlet reportlet
protected java.util.List<java.util.Map> record_list
protected java.util.List<Parameter> arrayParaList
public void execute(com.fr.third.org.quartz.JobExecutionContext context) throws com.fr.third.org.quartz.JobExecutionException
execute
在接口中 com.fr.third.org.quartz.Job
context
- 前后关系com.fr.third.org.quartz.JobExecutionException
public boolean doDispatch(com.fr.third.org.quartz.JobExecutionContext context)
protected abstract void executeReport()
public ScheduleTask getScheduleTask()
protected Parameter[] getExecuteParameter()
protected boolean checkExecuteFormula(java.util.Map parameterMap, ResultWorkBook book)
parameterMap
- 报表参数book
- 计算后的报表protected void dealWithException(java.lang.Exception e)
e
- protected void logReportPathError()
protected java.lang.String getExecuteFailLog()
protected void logTipInfo()
protected void restartTask()
protected java.lang.Boolean evaluateFormula(BaseFormula formula, ResultWorkBook book) throws java.lang.Exception
formula
- 需要判断的公式java.lang.Exception
protected void exportViewScheduleSavedInfo(java.io.File saveDirectory, ViewScheduleSavedInfo viewScheduleSavedInfo) throws java.io.IOException
java.io.IOException