[Exec] modify sync and async execution function

This commit is contained in:
zeaslity
2023-06-15 10:37:45 +08:00
parent e6c71612aa
commit ec3d5bba1e
20 changed files with 668 additions and 654 deletions

View File

@@ -3,7 +3,7 @@ package io.wdd.func.xray.service;
import io.wdd.common.utils.TimeUtils;
import io.wdd.func.oss.config.OctopusObjectSummary;
import io.wdd.func.xray.beans.node.ProxyNode;
import io.wdd.rpc.execute.service.AsyncExecutionService;
import io.wdd.rpc.execute.service.SyncExecutionService;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;
@@ -83,7 +83,7 @@ public class XrayCallAgent {
}
@Resource
AsyncExecutionService executionService;
SyncExecutionService executionService;
/**
* 为代理链的每一个节点 构建Xray配置更新命令然后发送至对应的Agent中
@@ -131,7 +131,7 @@ public class XrayCallAgent {
);
// 向Agent发送命令执行更新操作
String resultKey = executionService.SendCommandToAgent(
String resultKey = executionService.SyncSendCommandToAgent(
proxyNode.getAgentTopicName(),
updateCommandType,
null,