Commit 6117adac by huangfusuper

BUG修改

parent b8254234
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
</dependency> </dependency>
<dependency> <dependency>
<groupId>myth-job</groupId> <groupId>myth-job</groupId>
<artifactId>byit-myth-dto</artifactId> <artifactId>myth-dto-core</artifactId>
<version>1.0-SNAPSHOT</version> <version>1.0-SNAPSHOT</version>
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
......
...@@ -22,8 +22,7 @@ ...@@ -22,8 +22,7 @@
</dependency> </dependency>
<dependency> <dependency>
<groupId>myth-job</groupId> <groupId>myth-job</groupId>
<artifactId>byit-myth-dto</artifactId> <artifactId>myth-dto-core</artifactId> <version>1.0-SNAPSHOT</version>
<version>1.0-SNAPSHOT</version>
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
</dependencies> </dependencies>
......
...@@ -43,6 +43,14 @@ ...@@ -43,6 +43,14 @@
<artifactId>myth-executor-core</artifactId> <artifactId>myth-executor-core</artifactId>
</dependency> </dependency>
<!-- https://mvnrepository.com/artifact/xstream/xstream -->
<dependency>
<groupId>xstream</groupId>
<artifactId>xstream</artifactId>
<version>1.2.2</version>
</dependency>
</dependencies> </dependencies>
<distributionManagement> <distributionManagement>
......
...@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSON; ...@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSON;
import com.byit.dto.executor.AdminSenPluginDto; import com.byit.dto.executor.AdminSenPluginDto;
import com.byit.dto.executor.DispatchResponseDto; import com.byit.dto.executor.DispatchResponseDto;
import com.byit.enums.JobResultEnum; import com.byit.enums.JobResultEnum;
import com.byit.thread.RunJobThread;
import io.netty.buffer.ByteBuf; import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled; import io.netty.buffer.Unpooled;
import io.netty.channel.ChannelHandlerContext; import io.netty.channel.ChannelHandlerContext;
......
...@@ -46,7 +46,7 @@ public class JarRunScanProject implements IScanProject { ...@@ -46,7 +46,7 @@ public class JarRunScanProject implements IScanProject {
public static void classScan() throws IOException { public static void classScan() throws IOException {
JarFile jarFile = new JarFile(rootPath); JarFile jarFile = new JarFile(rootPath);
File file = new File(rootPath); File file = new File(rootPath);
URL url = file.toURI( ).toURL( ); URL url = file.toURI( ).toURL();
//获取当前jar的类加载器 //获取当前jar的类加载器
URLClassLoader urlClassLoader = new URLClassLoader(new URL[]{url}); URLClassLoader urlClassLoader = new URLClassLoader(new URL[]{url});
......
package com.byit.rpc; package com.byit.thread;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import com.byit.dto.executor.AdminSenPluginDto; import com.byit.dto.executor.AdminSenPluginDto;
...@@ -21,7 +21,7 @@ import java.util.Date; ...@@ -21,7 +21,7 @@ import java.util.Date;
public class RunJobThread implements Runnable { public class RunJobThread implements Runnable {
private AdminSenPluginDto adminSenPluginDto; private AdminSenPluginDto adminSenPluginDto;
RunJobThread(AdminSenPluginDto adminSenPluginDto) { public RunJobThread(AdminSenPluginDto adminSenPluginDto) {
this.adminSenPluginDto = adminSenPluginDto; this.adminSenPluginDto = adminSenPluginDto;
} }
......
...@@ -383,7 +383,6 @@ public class JobUtils { ...@@ -383,7 +383,6 @@ public class JobUtils {
} catch (UnsupportedEncodingException e) { } catch (UnsupportedEncodingException e) {
e.printStackTrace( ); e.printStackTrace( );
} }
System.out.println(path );
return path; return path;
} }
......
...@@ -33,6 +33,12 @@ ...@@ -33,6 +33,12 @@
</dependency> </dependency>
<dependency> <dependency>
<groupId>myth-job</groupId>
<artifactId>myth-executor-plugin</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.alibaba</groupId> <groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId> <artifactId>fastjson</artifactId>
<version>1.2.62</version> <version>1.2.62</version>
...@@ -46,12 +52,6 @@ ...@@ -46,12 +52,6 @@
<groupId>myth-job</groupId> <groupId>myth-job</groupId>
<artifactId>myth-executor-api</artifactId> <artifactId>myth-executor-api</artifactId>
</dependency> </dependency>
<dependency>
<groupId>myth-job</groupId>
<artifactId>myth-executor-plugin</artifactId>
<version>1.0-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
</dependencies> </dependencies>
<build> <build>
......
...@@ -13,25 +13,6 @@ import java.io.IOException; ...@@ -13,25 +13,6 @@ import java.io.IOException;
public class Mains { public class Mains {
public static void main(String[] args) throws IOException { public static void main(String[] args) throws IOException {
new JobRunServerLauncher(8888); new JobRunServerLauncher(8888);
/*String plServerUrl = "http://10.0.55.238:8888";
String mythCron = "时间";
String routingStrategy = LoadBalance.ROUND.name();
String blockingStrategy = "阻塞策略";
String callbackToken = "dsasadsad";
String gatewayToken="asdsadsa";
String requestIP = "10.0.55.238";
String requestPort="8080";
String param="不延迟任务";
String name="addJob";
String email = "huangfusuper@163.com";
String email1 = "huangfusuper@163.com";
PluginBeanJobInfo pluginBeanJobInfo = new PluginBeanJobInfo(name,plServerUrl,mythCron,routingStrategy,blockingStrategy,callbackToken,gatewayToken,requestIP,requestPort,param,email,"");
System.out.println(pluginBeanJobInfo);
PluginBeanJobInfo javaBeanJobInfo1 = new PluginBeanJobInfo(name,plServerUrl,mythCron,routingStrategy,blockingStrategy,callbackToken,gatewayToken,requestIP,requestPort,param,email1,"");
javaBeanJobInfo1.setJobHandelName("END");
javaBeanJobInfo1.setParam("延迟任务");
JobUtils.addJob(javaBeanJobInfo1);
JobUtils.addJob(pluginBeanJobInfo);*/
} }
} }
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