[ server] [ agent ] - 版本信息控制

This commit is contained in:
zeaslity
2023-02-08 16:46:44 +08:00
parent 4382bcdc78
commit 1ad81e41c9
5 changed files with 72 additions and 13 deletions

View File

@@ -19,7 +19,7 @@ public class AgentOperationInfoService {
@Resource
OMessageToServerSender oMessageToServerSender;
public void AgentOpInfo(OctopusMessage order){
public void AgentOpInfo(OctopusMessage octopusMessage){
}

View File

@@ -57,11 +57,15 @@ public class OMHandlerAgent extends AbstractOctopusMessageHandler {
// update
agentRebootUpdateService.exAgentUpdate(operationMessage);
} else if (opType.equals(AgentOperationType.VERSION)) {
// 收集Agent的版本信息
agentOperationInfoService.AgentOpVersion(octopusMessage);
} else if (opType.equals(AgentOperationType.INFO)) {
// 收集Agent的核心Info信息
agentOperationInfoService.AgentOpInfo(octopusMessage);
} else {
// operation unknown
log.error("Command Agent Operation Unknown! ");