feature(web): 增加调度计划显示
This commit is contained in:
@@ -9,6 +9,7 @@ import com.lanyuanxiaoyao.service.configuration.entity.yarn.YarnApplication;
|
||||
import com.lanyuanxiaoyao.service.configuration.entity.yarn.YarnRootQueue;
|
||||
import com.lanyuanxiaoyao.service.forest.service.InfoService;
|
||||
import com.lanyuanxiaoyao.service.forest.service.QueueService;
|
||||
import com.lanyuanxiaoyao.service.forest.service.ScheduleService;
|
||||
import com.lanyuanxiaoyao.service.forest.service.YarnService;
|
||||
import com.lanyuanxiaoyao.service.web.entity.JobIdAndAliasVO;
|
||||
import java.time.LocalDateTime;
|
||||
@@ -41,12 +42,14 @@ public class OverviewController extends BaseController {
|
||||
private final InfoService infoService;
|
||||
private final YarnService yarnService;
|
||||
private final QueueService queueService;
|
||||
private final ScheduleService scheduleService;
|
||||
|
||||
@SuppressWarnings("SpringJavaInjectionPointsAutowiringInspection")
|
||||
public OverviewController(InfoService infoService, YarnService yarnService, QueueService queueService) {
|
||||
public OverviewController(InfoService infoService, YarnService yarnService, QueueService queueService, ScheduleService scheduleService) {
|
||||
this.infoService = infoService;
|
||||
this.yarnService = yarnService;
|
||||
this.queueService = queueService;
|
||||
this.scheduleService = scheduleService;
|
||||
}
|
||||
|
||||
@GetMapping("")
|
||||
@@ -158,4 +161,9 @@ public class OverviewController extends BaseController {
|
||||
}
|
||||
return responseCrudData(jobIdAndAliases.collect(JobIdAndAliasVO::new));
|
||||
}
|
||||
|
||||
@GetMapping("schedule_jobs")
|
||||
public AmisResponse scheduleJobs() {
|
||||
return responseCrudData(scheduleService.scheduleJobs());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user