|
@@ -38,7 +38,7 @@ public class MyScheduler {
|
|
|
public void server() {
|
|
|
try {
|
|
|
List<SystemServerPO> systemServerPOList = new ArrayList<>();
|
|
|
- log.info("server() 服务器列表为:"+hostList);
|
|
|
+ log.info("server() 服务器列表为:" + hostList);
|
|
|
for (Host host : hostList) {
|
|
|
int taskNumber = 0;
|
|
|
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)
|
|
|
// public void test() throws IOException, DocumentException {
|
|
|
// SshClient client = SshUtil.getClient();
|