mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-11-29 18:48:13 +08:00
chore: EngineFactory 函数名称修改
This commit is contained in:
parent
e3e0956654
commit
b010135901
@ -314,7 +314,7 @@ public class ApiTaskCenterService {
|
||||
try {
|
||||
TestResourceDTO testResourceDTO = new TestResourceDTO();
|
||||
BeanUtils.copyBean(testResourceDTO, testResourcePoolDTO.getTestResourceReturnDTO());
|
||||
EngineFactory.stopApi(subList, testResourceDTO);
|
||||
EngineFactory.stopApiTask(subList, testResourceDTO);
|
||||
} catch (Exception e) {
|
||||
LogUtils.error(e);
|
||||
} finally {
|
||||
@ -407,7 +407,7 @@ public class ApiTaskCenterService {
|
||||
SubListUtils.dealForSubList(reportList, 100, subList -> {
|
||||
try {
|
||||
LogUtils.info(String.format("开始发送停止请求到 %s 节点执行", endpoint), subList.toString());
|
||||
// MsHttpClient.stopApi(endpoint, subList); todo taskIds
|
||||
MsHttpClient.stopApiTask(endpoint, subList); // todo taskIds
|
||||
} catch (Exception e) {
|
||||
LogUtils.error(e);
|
||||
} finally {
|
||||
|
@ -63,7 +63,7 @@ public class KubernetesExecTests extends BaseTest {
|
||||
List<String> request = new ArrayList<>();
|
||||
TestResourceDTO resource = new TestResourceDTO();
|
||||
try {
|
||||
EngineFactory.stopApi(request, resource);
|
||||
EngineFactory.stopApiTask(request, resource);
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error: " + e.getMessage());
|
||||
}
|
||||
|
@ -343,7 +343,7 @@ public class TestPlanTaskCenterService {
|
||||
try {
|
||||
TestResourceDTO testResourceDTO = new TestResourceDTO();
|
||||
BeanUtils.copyBean(testResourceDTO, testResourcePoolDTO.getTestResourceReturnDTO());
|
||||
EngineFactory.stopApi(subList, testResourceDTO);
|
||||
EngineFactory.stopApiTask(subList, testResourceDTO);
|
||||
} catch (Exception e) {
|
||||
LogUtils.error(e);
|
||||
}
|
||||
@ -369,7 +369,7 @@ public class TestPlanTaskCenterService {
|
||||
SubListUtils.dealForSubList(reportList, 100, (subList) -> {
|
||||
try {
|
||||
LogUtils.info(String.format("开始发送停止请求到 %s 节点执行", endpoint), subList.toString());
|
||||
MsHttpClient.stopApi(endpoint, subList);
|
||||
MsHttpClient.stopApiTask(endpoint, subList);
|
||||
} catch (Exception e) {
|
||||
LogUtils.error(e);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user