[server][ executor]- 完成底层的代码 - 2
This commit is contained in:
@@ -104,7 +104,7 @@ public interface AsyncExecutionService {
|
||||
* @param durationTask
|
||||
* @return
|
||||
*/
|
||||
OctopusMessage SyncCallSendCommandToAgent(
|
||||
OctopusMessage AsyncCallSendCommandToAgent(
|
||||
String agentTopicName,
|
||||
String type,
|
||||
List<String> commandList,
|
||||
|
||||
@@ -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)) {
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user