root 2 years ago
parent
commit
53f712e90d

+ 14 - 1
simulation-resource-monitor/src/main/java/com/css/simulation/resource/monitor/scheduler/MyScheduler.java

@@ -38,7 +38,7 @@ public class MyScheduler {
     public void server() {
     public void server() {
         try {
         try {
             List<SystemServerPO> systemServerPOList = new ArrayList<>();
             List<SystemServerPO> systemServerPOList = new ArrayList<>();
-            log.info("server() 服务器列表为:"+hostList);
+            log.info("server() 服务器列表为:" + hostList);
             for (Host host : hostList) {
             for (Host host : hostList) {
                 int taskNumber = 0;
                 int taskNumber = 0;
                 SshClient sshClient = SshClient.setUpDefaultClient();
                 SshClient sshClient = SshClient.setUpDefaultClient();
@@ -91,6 +91,19 @@ public class MyScheduler {
 
 
     }
     }
 
 
+
+    @Scheduled(fixedDelay = 60 * 1000)
+    public void deleteGeneral() {
+        try {
+            //1 查询泛化场景表所有id
+            //2 查询泛化文件表
+        } catch (Exception e) {
+            e.printStackTrace();
+            throw new RuntimeException(e);
+        }
+
+    }
+
 //    @Scheduled(fixedDelay = 2 * 1000)
 //    @Scheduled(fixedDelay = 2 * 1000)
 //    public void test() throws IOException, DocumentException {
 //    public void test() throws IOException, DocumentException {
 //        SshClient client = SshUtil.getClient();
 //        SshClient client = SshUtil.getClient();