[server][ executor]- 完成底层的代码 - 2

This commit is contained in:
zeaslity
2023-02-28 21:56:31 +08:00
parent a47ede755f
commit 0959aebf67
3 changed files with 4 additions and 6 deletions

View File

@@ -104,7 +104,7 @@ public interface AsyncExecutionService {
* @param durationTask
* @return
*/
OctopusMessage SyncCallSendCommandToAgent(
OctopusMessage AsyncCallSendCommandToAgent(
String agentTopicName,
String type,
List<String> commandList,

View File

@@ -135,7 +135,7 @@ public class AsyncExecutionServiceImpl implements AsyncExecutionService {
}
// 调用最底层的方法
this.SyncCallSendCommandToAgent(
this.AsyncCallSendCommandToAgent(
agentTopicName,
type,
commandList,
@@ -149,7 +149,7 @@ public class AsyncExecutionServiceImpl implements AsyncExecutionService {
}
@Override
public OctopusMessage SyncCallSendCommandToAgent(String agentTopicName, String type, List<String> commandList, List<List<String>> commandListComplete, boolean needResultReplay, String futureKey, boolean durationTask) {
public OctopusMessage AsyncCallSendCommandToAgent(String agentTopicName, String type, List<String> commandList, List<List<String>> commandListComplete, boolean needResultReplay, String futureKey, boolean durationTask) {
// 检查agentTopicName是否存在
if (!ALL_AGENT_TOPIC_NAME_SET.contains(agentTopicName)) {

View File

@@ -180,7 +180,7 @@ public class SyncExecutionServiceImpl implements SyncExecutionService {
@Override
public ArrayList<String> SyncSendCommandToAgent(String agentTopicName, String type, List<String> commandList, List<List<String>> commandListComplete, boolean needResultReplay, String futureKey, boolean durationTask) {
OctopusMessage octopusMessage = asyncExecutionService.SyncCallSendCommandToAgent(
OctopusMessage octopusMessage = asyncExecutionService.AsyncCallSendCommandToAgent(
agentTopicName,
type,
commandList,
@@ -220,7 +220,6 @@ public class SyncExecutionServiceImpl implements SyncExecutionService {
TimeUnit.SECONDS
);
} catch (InterruptedException e) {
throw new RuntimeException(e);
} finally {
@@ -229,7 +228,6 @@ public class SyncExecutionServiceImpl implements SyncExecutionService {
// 停止等待结果
asyncWaitOMResult.stopWaiting(omReplayContend);
// 解析结果
omReplayContend
.getReplayOMList()