|
@@ -6,6 +6,7 @@ import api.common.util.SshUtil;
|
|
|
import api.common.util.StringUtil;
|
|
|
import api.common.util.TimeUtil;
|
|
|
import com.css.simulation.resource.monitor.manager.SystemServerManager;
|
|
|
+import com.css.simulation.resource.monitor.mappper.ScenePackageSublistMapper;
|
|
|
import lombok.Data;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.sshd.client.SshClient;
|
|
@@ -18,6 +19,7 @@ import org.springframework.stereotype.Component;
|
|
|
import javax.annotation.Resource;
|
|
|
import java.io.IOException;
|
|
|
import java.util.ArrayList;
|
|
|
+import java.util.Arrays;
|
|
|
import java.util.List;
|
|
|
|
|
|
@Component
|
|
@@ -31,7 +33,9 @@ public class MyScheduler {
|
|
|
|
|
|
|
|
|
@Resource
|
|
|
- SystemServerManager systemServerManager;
|
|
|
+ private SystemServerManager systemServerManager;
|
|
|
+ @Resource
|
|
|
+ private ScenePackageSublistMapper scenePackageSublistMapper;
|
|
|
|
|
|
|
|
|
@Scheduled(fixedDelay = 60 * 1000)
|
|
@@ -95,8 +99,16 @@ public class MyScheduler {
|
|
|
@Scheduled(fixedDelay = 60 * 1000)
|
|
|
public void deleteGeneral() {
|
|
|
try {
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+ List<String> sceneGeneralizationIdsList = scenePackageSublistMapper.selectSceneGeneralizationIds();
|
|
|
+
|
|
|
+ List<String> sceneGeneralizationIdList = new ArrayList<>();
|
|
|
+ sceneGeneralizationIdsList.forEach(ids -> {
|
|
|
+ String[] split = ids.split(",");
|
|
|
+ sceneGeneralizationIdList.addAll(Arrays.asList(split));
|
|
|
+ });
|
|
|
+
|
|
|
+
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
throw new RuntimeException(e);
|