Commit 0e9e188a by huangfusuper

修改插件端项目扫描方式 将自动扫描改为手动配置!增加启动速度,减少资源消耗!

parent 7df3401c
<?xml version="1.0" encoding="UTF-8"?>
<executor-plugin>
<port>8989</port>
<classNames>
<className>com.byit.model.PluginConfigModel</className>
<className>com.byit.model.PluginConfigModel</className>
<className>com.byit.model.PluginConfigModel</className>
<className>com.byit.model.PluginConfigModel</className>
<className>com.byit.model.PluginConfigModel</className>
<className>com.byit.model.PluginConfigModel</className>
</classNames>
</executor-plugin>
\ No newline at end of file
package com.byit.job;
import com.byit.filesystem.FastDfsFileSystem;
import com.byit.launcher.JobRunServerLauncher;
import com.byit.utils.JobUtils;
import org.csource.common.MyException;
import java.io.IOException;
......@@ -12,11 +14,15 @@ import java.io.IOException;
* @date: 2019/11/20 12:18
**/
public class Mains {
public static void main(String[] args) throws InterruptedException {
new JobRunServerLauncher("/plugin.xml");
public static void main(String[] args) throws InterruptedException, IOException, MyException {
FastDfsFileSystem fastDfsFileSystem = new FastDfsFileSystem();
byte[] bytes = fastDfsFileSystem.downloaderFile("ddmp/M00/00/00/CgB4Al5wa36ADcUtAAAAiVc2FQ85978.py");
System.out.println(new String(bytes));
/*new JobRunServerLauncher("/plugin.xml");
JobUtils.jobCache.forEach((key,value) ->{
System.out.println(key);
});
});*/
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment