feat(cli): 增加多jdk的支持
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package com.lanyuanxiaoyao.service.cli.core;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 运行配置
|
||||
*
|
||||
@@ -10,7 +12,8 @@ public class RuntimeInfo {
|
||||
private String signature;
|
||||
private String user;
|
||||
private String jarPath;
|
||||
private String jdkPath;
|
||||
private String defaultJdk;
|
||||
private Map<String, String> jdkPath;
|
||||
private String logPath;
|
||||
private String confPath;
|
||||
private String dataPath;
|
||||
@@ -47,11 +50,19 @@ public class RuntimeInfo {
|
||||
this.jarPath = jarPath;
|
||||
}
|
||||
|
||||
public String getJdkPath() {
|
||||
public String getDefaultJdk() {
|
||||
return defaultJdk;
|
||||
}
|
||||
|
||||
public void setDefaultJdk(String defaultJdk) {
|
||||
this.defaultJdk = defaultJdk;
|
||||
}
|
||||
|
||||
public Map<String, String> getJdkPath() {
|
||||
return jdkPath;
|
||||
}
|
||||
|
||||
public void setJdkPath(String jdkPath) {
|
||||
public void setJdkPath(Map<String, String> jdkPath) {
|
||||
this.jdkPath = jdkPath;
|
||||
}
|
||||
|
||||
@@ -146,22 +157,23 @@ public class RuntimeInfo {
|
||||
@Override
|
||||
public String toString() {
|
||||
return "RuntimeInfo{" +
|
||||
"signature='" + signature + '\'' +
|
||||
", user='" + user + '\'' +
|
||||
", jarPath='" + jarPath + '\'' +
|
||||
", jdkPath='" + jdkPath + '\'' +
|
||||
", logPath='" + logPath + '\'' +
|
||||
", confPath='" + confPath + '\'' +
|
||||
", dataPath='" + dataPath + '\'' +
|
||||
", downloadUrl='" + downloadUrl + '\'' +
|
||||
", kerberosKeytabPath='" + kerberosKeytabPath + '\'' +
|
||||
", loki=" + loki +
|
||||
", zkUrl='" + zkUrl + '\'' +
|
||||
", connectorZkUrl='" + connectorZkUrl + '\'' +
|
||||
", hudi=" + hudi +
|
||||
", security=" + security +
|
||||
", yarn=" + yarn +
|
||||
'}';
|
||||
"signature='" + signature + '\'' +
|
||||
", user='" + user + '\'' +
|
||||
", jarPath='" + jarPath + '\'' +
|
||||
", defaultJdk='" + defaultJdk + '\'' +
|
||||
", jdkPath=" + jdkPath +
|
||||
", logPath='" + logPath + '\'' +
|
||||
", confPath='" + confPath + '\'' +
|
||||
", dataPath='" + dataPath + '\'' +
|
||||
", downloadUrl='" + downloadUrl + '\'' +
|
||||
", kerberosKeytabPath='" + kerberosKeytabPath + '\'' +
|
||||
", loki=" + loki +
|
||||
", zkUrl='" + zkUrl + '\'' +
|
||||
", connectorZkUrl='" + connectorZkUrl + '\'' +
|
||||
", hudi=" + hudi +
|
||||
", security=" + security +
|
||||
", yarn=" + yarn +
|
||||
'}';
|
||||
}
|
||||
|
||||
public static final class LokiInfo {
|
||||
|
||||
@@ -17,6 +17,7 @@ public class ServiceInfo {
|
||||
private List<String> groups = new ArrayList<>();
|
||||
private Integer replicas = 0;
|
||||
private String sourceJar;
|
||||
private String jdk;
|
||||
private List<String> classpath = new ArrayList<>();
|
||||
private Map<String, Object> environments = new HashMap<>();
|
||||
private Map<String, Object> arguments = new HashMap<>();
|
||||
@@ -61,6 +62,14 @@ public class ServiceInfo {
|
||||
this.sourceJar = sourceJar;
|
||||
}
|
||||
|
||||
public String getJdk() {
|
||||
return jdk;
|
||||
}
|
||||
|
||||
public void setJdk(String jdk) {
|
||||
this.jdk = jdk;
|
||||
}
|
||||
|
||||
public List<String> getClasspath() {
|
||||
return classpath;
|
||||
}
|
||||
@@ -88,14 +97,15 @@ public class ServiceInfo {
|
||||
@Override
|
||||
public String toString() {
|
||||
return "ServiceInfo{" +
|
||||
"enabled=" + enabled +
|
||||
", order=" + order +
|
||||
", groups=" + groups +
|
||||
", replicas=" + replicas +
|
||||
", sourceJar='" + sourceJar + '\'' +
|
||||
", classpath=" + classpath +
|
||||
", environments=" + environments +
|
||||
", arguments=" + arguments +
|
||||
'}';
|
||||
"enabled=" + enabled +
|
||||
", order=" + order +
|
||||
", groups=" + groups +
|
||||
", replicas=" + replicas +
|
||||
", sourceJar='" + sourceJar + '\'' +
|
||||
", jdk=" + jdk +
|
||||
", classpath=" + classpath +
|
||||
", environments=" + environments +
|
||||
", arguments=" + arguments +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user