From 003d8383d6a03e5732ed75a179be22ecfdad9144 Mon Sep 17 00:00:00 2001 From: richie Date: Sat, 12 Oct 2019 16:48:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E5=85=A5=E5=BA=93=E7=9A=84AP?= =?UTF-8?q?I?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/report/submit/BaseSubmitTask.java | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 src/main/java/com/fanruan/api/report/submit/BaseSubmitTask.java diff --git a/src/main/java/com/fanruan/api/report/submit/BaseSubmitTask.java b/src/main/java/com/fanruan/api/report/submit/BaseSubmitTask.java new file mode 100644 index 0000000..4ffd745 --- /dev/null +++ b/src/main/java/com/fanruan/api/report/submit/BaseSubmitTask.java @@ -0,0 +1,37 @@ +package com.fanruan.api.report.submit; + +import com.fr.data.AbstractSubmitTask; +import com.fr.script.Calculator; + +/** + * @author richie + * @version 10.0 + * Created by richie on 2019/10/12 + * 数据提交接口 + */ +public abstract class BaseSubmitTask extends AbstractSubmitTask { + + /** + * 提交类型 + * + * @return 用于表示提交类型的字符串 + */ + public abstract String getJobType(); + + /** + * 提交操作 + * + * @param calculator 算子 + * @throws Exception 提交发生错误则抛出此异常 + */ + public abstract void doJob(Calculator calculator) throws Exception; + + /** + * 提交结束之后的操作 + * + * @param calculator 算子 + * @throws Exception 提交结束处理过程中发生错误则抛出此异常 + */ + public abstract void doFinish(Calculator calculator) throws Exception; + +}