feature(web): 增加批量增加压缩调度

This commit is contained in:
2023-07-06 12:28:46 +08:00
parent 30f42b2734
commit e47de5d5c6
6 changed files with 142 additions and 5 deletions

View File

@@ -0,0 +1,9 @@
package com.lanyuanxiaoyao.service.configuration;
/**
* @author lanyuanxiaoyao
* @date 2023-07-06
*/
public interface Constants {
String SERVICE_NAME_INFO_QUERY = "info-query";
}

View File

@@ -0,0 +1,27 @@
package com.lanyuanxiaoyao.service.configuration.exception;
import cn.hutool.core.util.StrUtil;
/**
* Hudi 服务异常
*
* @author lanyuanxiaoyao
* @date 2023-07-06
*/
public class HudiServiceException extends Exception {
public HudiServiceException(String serviceName) {
super(StrUtil.format("[{}] cause exception", serviceName));
}
public HudiServiceException(String serviceName, String message) {
super(StrUtil.format("[{}] {}", serviceName, message));
}
public HudiServiceException(String serviceName, String message, Throwable cause) {
super(StrUtil.format("[{}] {}", serviceName, message), cause);
}
public HudiServiceException(String serviceName, Throwable cause) {
super(StrUtil.format("[{}] cause exception"), cause);
}
}

View File

@@ -0,0 +1,13 @@
package com.lanyuanxiaoyao.service.configuration.exception;
import cn.hutool.core.util.StrUtil;
/**
* @author lanyuanxiaoyao
* @date 2023-07-06
*/
public class TableNotFoundException extends HudiServiceException {
public TableNotFoundException(String serviceName, Long flinkJobId, String alias) {
super(serviceName, StrUtil.format("Table {} {} is not found", flinkJobId, alias));
}
}