|
@@ -10,8 +10,8 @@ import cn.hutool.json.JSONUtil;
|
|
|
import com.jiayue.ipfcst.common.data.dto.ProcessResult;
|
|
|
import com.jiayue.ipfcst.common.data.util.ShellUtil;
|
|
|
import com.jiayue.ipfcst.spare2.base4.BaseService;
|
|
|
-import com.jiayue.ipfcst.spare2.baseinfos.service.ImageLoadeService;
|
|
|
-import com.jiayue.ipfcst.spare2.util.FileUtil;
|
|
|
+import com.jiayue.ipfcst.spare2.common.service.ImageInfoLoadeService;
|
|
|
+import com.jiayue.ipfcst.spare2.util.FilesUtil;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.scheduling.annotation.EnableScheduling;
|
|
@@ -30,7 +30,7 @@ import java.util.Map;
|
|
|
public class ConsoleCheckUpJob extends BaseService {
|
|
|
|
|
|
@Autowired
|
|
|
- ImageLoadeService imageLoadeService;
|
|
|
+ ImageInfoLoadeService imageInfoLoadeService;
|
|
|
|
|
|
@Scheduled(cron = "0/30 * * * * *")
|
|
|
public void MonitConsoleUp() {
|
|
@@ -68,7 +68,7 @@ public class ConsoleCheckUpJob extends BaseService {
|
|
|
//console进程不存在或者console健康接口返回为异常,启动spare2文件生成逻辑
|
|
|
if (error) {
|
|
|
log.info("spare2程序生成文件");
|
|
|
- imageLoadeService.imageLoad();
|
|
|
+ imageInfoLoadeService.imageLoad();
|
|
|
} else {
|
|
|
log.info("console程序生成文件");
|
|
|
}
|
|
@@ -83,6 +83,6 @@ public class ConsoleCheckUpJob extends BaseService {
|
|
|
cmds.add("sh");
|
|
|
cmds.add("-c");
|
|
|
cmds.add("pgrep -fl ipfcst-console");
|
|
|
- return ShellUtil.runProcess(cmds, envs, new File(FileUtil.getBinPath()));
|
|
|
+ return ShellUtil.runProcess(cmds, envs, new File(FilesUtil.getBinPath()));
|
|
|
}
|
|
|
}
|