|
@@ -38,13 +38,15 @@ public final class XxlJobDynamicScheduler implements ApplicationContextAware, In
|
38
|
38
|
}
|
39
|
39
|
|
40
|
40
|
// init
|
41
|
|
- private NetComServerFactory serverFactory = new NetComServerFactory();
|
42
|
41
|
public void init() throws Exception {
|
43
|
42
|
// admin registry monitor run
|
44
|
43
|
JobRegistryMonitorHelper.getInstance().start();
|
45
|
44
|
|
46
|
45
|
// admin monitor run
|
47
|
46
|
JobFailMonitorHelper.getInstance().start();
|
|
47
|
+
|
|
48
|
+ // rpc-service, base on spring-mvc
|
|
49
|
+ NetComServerFactory.putService(AdminBiz.class, XxlJobDynamicScheduler.adminBiz);
|
48
|
50
|
}
|
49
|
51
|
|
50
|
52
|
// destroy
|
|
@@ -54,8 +56,6 @@ public final class XxlJobDynamicScheduler implements ApplicationContextAware, In
|
54
|
56
|
|
55
|
57
|
// admin monitor stop
|
56
|
58
|
JobFailMonitorHelper.getInstance().toStop();
|
57
|
|
-
|
58
|
|
- serverFactory.destroy();
|
59
|
59
|
}
|
60
|
60
|
|
61
|
61
|
// xxlJobLogDao、xxlJobInfoDao
|