summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfangshunjian <[email protected]>2018-11-26 10:45:39 +0800
committerfangshunjian <[email protected]>2018-11-26 10:45:39 +0800
commitfc5f49a01603b8e5bc4d406cdd06b61b94b6007a (patch)
treea5fcc0745641daca5390ad217a7b8ce0f8f46094
parent25f7bc1c6bc89ae4e1691494693b5827669ff558 (diff)
parent238b2576347910d2eed0529055042d6b36b109d5 (diff)
Merge branch 'dev' of [email protected]:nms/nmsserver.git into dev
-rw-r--r--src/com/nms/server/thread/change/ChangePluginScriptFile.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/nms/server/thread/change/ChangePluginScriptFile.java b/src/com/nms/server/thread/change/ChangePluginScriptFile.java
index 428569c..7ffe34d 100644
--- a/src/com/nms/server/thread/change/ChangePluginScriptFile.java
+++ b/src/com/nms/server/thread/change/ChangePluginScriptFile.java
@@ -138,11 +138,9 @@ public class ChangePluginScriptFile implements Runnable {
}
}
}
-
for (String ip : ncNodesIpStrSet) {
Common.runChangeRunnable(new SendPluginScriptFile(ip, sendRecordList.get(ip)));
}
-
// 延时清理脚本
new Thread(new DeletePluginScriptDirAfterSending()).start();
@@ -408,7 +406,7 @@ public class ChangePluginScriptFile implements Runnable {
String ips = Common.getIpSeqIdMap().get(recvIpSet.iterator().next())+"";
changeService.saveEventRecordLibrary(SEND_PLUGIN_SCRIPT_FILE, ips,
"S2C", JSONObject.fromObject(recordContent).toString());
-
+ task.new DeletePluginScriptDirAfterSending().run();
} catch (SQLException e) {
logger.error(e.getMessage(), e);
} finally {
@@ -519,6 +517,7 @@ public class ChangePluginScriptFile implements Runnable {
e.printStackTrace();
}
}
+ logger.debug("删除临时目录" + pluginScriptDir.getAbsolutePath());
FileUtils.deleteAllFiles(pluginScriptDir, true);
}
}
@@ -533,6 +532,7 @@ public class ChangePluginScriptFile implements Runnable {
File tempPluginDir = new File(Constants.PLUGIN_SCRIPT_FILE_DIR, System.currentTimeMillis()+"");
if (!tempPluginDir.exists()) {
tempPluginDir.mkdirs();
+ logger.debug("创建临时目录" + tempPluginDir.getAbsolutePath());
}
return tempPluginDir;
}