[ Agent ] [ Status ] - refresh status part

This commit is contained in:
zeaslity
2023-12-20 15:50:08 +08:00
parent 3312052645
commit 4d56083b5a
15 changed files with 423 additions and 68 deletions

View File

@@ -24,7 +24,7 @@ public class AppFuncScheduler {
/**
* 参数固定顺序为 A1C2IP SUPREME N1C2IP A1C1IP A1C1JS M2D2IP KIMMY JACLOVE
* 1 2 3 4 5 6 7 8
* 1 2 3 4 5 6 7 8
*
* @param projectDeployContext
* @param projectInfoPO
@@ -34,20 +34,20 @@ public class AppFuncScheduler {
ArrayList<String> appFuncArgs = new ArrayList<>();
appFuncArgs.add(projectDeployContext
.getMasterNode()
.getServerIpInV4());
.getMasterNode()
.getServerIpInV4());
appFuncArgs.add(projectInfoPO.getProjectNamespace());
appFuncArgs.add(projectDeployContext
.getMasterNode()
.getServerIpInV4());
.getMasterNode()
.getServerIpInV4());
appFuncArgs.add(projectDeployContext
.getMasterNode()
.getServerIpPbV4());
.getMasterNode()
.getServerIpPbV4());
appFuncArgs.add(projectInfoPO.getProjectWebServicePort());
// M2D2IP
appFuncArgs.add(projectDeployContext
.getMasterNode()
.getServerIpInV4());
.getMasterNode()
.getServerIpInV4());
appFuncArgs.add(projectInfoPO.getProjectVersion());
// jackeyLoveFile
appFuncArgs.add("init_5.1.0.tar");
@@ -106,9 +106,10 @@ public class AppFuncScheduler {
AppFunctionEnum.DEPLOY_NFS,
AppFunctionEnum.DEPLOY_TEST_NFS,
AppFunctionEnum.DEPLOY_K8S_NAMESPACE,
AppFunctionEnum.DEPLOY_K8S_PVC,
AppFunctionEnum.DEPLOY_K8S_MYSQL,
AppFunctionEnum.DEPLOY_K8S_REDIS,
AppFunctionEnum.DEPLOY_K8S_PVC,
AppFunctionEnum.DEPLOY_K8S_MIDDLEWARES,
AppFunctionEnum.DEPLOY_INGRESS
// AppFunctionEnum.DEPLOY_FRONTEND
// AppFunctionEnum.DEPLOY_BACKEND

View File

@@ -0,0 +1,28 @@
package io.wdd.rpc.status.beans;
public enum OMessageStatusTypeEnum {
PING("PING", "检测Agent主机的将抗状况"),
METRIC("METRIC", "检测Agent主机的Metric信息"),
INFO("INFO", "检测Agent主机的详细硬件信息");
String statusTypeName;
String statusDesc;
OMessageStatusTypeEnum(String statusTypeName, String statusDesc) {
this.statusTypeName = statusTypeName;
this.statusDesc = statusDesc;
}
public String getStatusTypeName() {
return statusTypeName;
}
public String getStatusDesc() {
return statusDesc;
}
}