feature(web): 增加调度计划显示

This commit is contained in:
2023-06-27 10:31:08 +08:00
parent 5d77f5c29b
commit a15fb1857f
5 changed files with 120 additions and 2 deletions

View File

@@ -0,0 +1,35 @@
package com.lanyuanxiaoyao.service.forest.service;
import com.dtflys.forest.annotation.BaseRequest;
import com.dtflys.forest.annotation.Get;
import com.dtflys.forest.annotation.Query;
import com.lanyuanxiaoyao.service.configuration.entity.schedule.ScheduleStrategy;
import org.eclipse.collections.api.list.ImmutableList;
/**
* @author lanyuanxiaoyao
* @date 2023-06-27
*/
@BaseRequest(baseURL = "http://service-scheduler/schedule")
public interface ScheduleService {
@Get("/schedule_jobs")
ImmutableList<ScheduleStrategy> scheduleJobs();
@Get("/all")
void scheduleAllTable();
@Get("/all_focus")
void scheduleAllFocus();
@Get("/all_un_scheduled")
void scheduleAllUnScheduledTable();
@Get("/table")
void scheduleTable(@Query("flink_job_id") Long flinkJobId, @Query("alias") String alias);
@Get("/table")
void scheduleTableForce(@Query("flink_job_id") Long flinkJobId, @Query("alias") String alias, @Query("force") String forceCluster);
@Get("/table")
void scheduleTableRecommend(@Query("flink_job_id") Long flinkJobId, @Query("alias") String alias, @Query("recommend") String recommendCluster);
}