This commit is contained in:
2025-11-26 17:48:41 +08:00
41 changed files with 311 additions and 1610 deletions

View File

@@ -0,0 +1,15 @@
package com.sdm.common.entity.constants;
// HPC指令相关常量类不单一代表某个含义
public class HpcConstants {
private HpcConstants() {
throw new AssertionError("不能实例化常量类!");
}
// 结果类型
public static final String FORMAT_LIST = "list";
// 结果类型 table
public static final String FORMAT_TABLE = "table";
}

View File

@@ -9,4 +9,6 @@ public class SubmitHpcJobResp extends HpcBaseResp {
private String jobId;
private String taskId;
}

View File

@@ -36,7 +36,9 @@ public class HttpClientUtil {
// 默认超时时间(毫秒)
private static final int DEFAULT_CONNECT_TIMEOUT = 5000;
private static final int DEFAULT_CONNECTION_REQUEST_TIMEOUT = 5000;
private static final int DEFAULT_SOCKET_TIMEOUT = 5000;
// private static final int DEFAULT_SOCKET_TIMEOUT = 5000;
// todo 临时改大,后期拆开
private static final int DEFAULT_SOCKET_TIMEOUT = 120000;
// 创建默认的HTTP客户端
private final CloseableHttpClient httpClient;