[server][ executor]- 完成同步调用命令的部分代码

This commit is contained in:
zeaslity
2023-02-28 15:36:53 +08:00
parent c51fdaad13
commit c36721eada
13 changed files with 535 additions and 91 deletions

View File

@@ -1,7 +1,7 @@
package io.wdd.rpc.scheduler.service.script;
import io.wdd.rpc.execute.service.CoreExecutionService;
import io.wdd.rpc.execute.service.AsyncExecutionService;
import io.wdd.rpc.scheduler.beans.ScriptSchedulerDTO;
import io.wdd.rpc.scheduler.config.QuartzSchedulerUtils;
import lombok.extern.slf4j.Slf4j;
@@ -20,7 +20,7 @@ import java.util.List;
public class AgentApplyScheduledScript {
@Resource
CoreExecutionService coreExecutionService;
AsyncExecutionService asyncExecutionService;
@Resource
QuartzSchedulerUtils quartzSchedulerUtils;
@@ -45,7 +45,7 @@ public class AgentApplyScheduledScript {
}
// 发送命令到Agent中
List<String> resultKeyList = coreExecutionService
List<String> resultKeyList = asyncExecutionService
.SendCommandToAgentComplete(
targetMachineList,
scriptType,