|
@@ -0,0 +1,28 @@
|
|
|
+package cn.com.qmth.examcloud.tool.task.oe;
|
|
|
+
|
|
|
+import cn.com.qmth.examcloud.tool.config.RedisClient;
|
|
|
+import cn.com.qmth.examcloud.tool.task.Task;
|
|
|
+import org.slf4j.Logger;
|
|
|
+import org.slf4j.LoggerFactory;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.stereotype.Component;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 初始化考试环境检测数据
|
|
|
+ */
|
|
|
+@Component
|
|
|
+public class InitExamEnvData implements Task {
|
|
|
+
|
|
|
+ private final static Logger log = LoggerFactory.getLogger(InitExamEnvData.class);
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private RedisClient redisClient;
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void start(String params) {
|
|
|
+ log.info("task start... " + params);
|
|
|
+ // todo
|
|
|
+ log.info("task end...");
|
|
|
+ }
|
|
|
+
|
|
|
+}
|