|
|
@ -69,7 +69,7 @@ public class XxlJobExecutor {
|
|
|
|
// init logpath
|
|
|
|
// init logpath
|
|
|
|
XxlJobFileAppender.initLogPath(logPath);
|
|
|
|
XxlJobFileAppender.initLogPath(logPath);
|
|
|
|
|
|
|
|
|
|
|
|
// init admin-client
|
|
|
|
// init invoker, admin-client
|
|
|
|
initAdminBizList(adminAddresses, accessToken);
|
|
|
|
initAdminBizList(adminAddresses, accessToken);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -103,6 +103,9 @@ public class XxlJobExecutor {
|
|
|
|
|
|
|
|
|
|
|
|
// destory executor-server
|
|
|
|
// destory executor-server
|
|
|
|
stopRpcProvider();
|
|
|
|
stopRpcProvider();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// destory invoker
|
|
|
|
|
|
|
|
stopInvokerFactory();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -139,6 +142,14 @@ public class XxlJobExecutor {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
private void stopInvokerFactory(){
|
|
|
|
|
|
|
|
// stop invoker factory
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
XxlRpcInvokerFactory.getInstance().stop();
|
|
|
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
|
|
|
logger.error(e.getMessage(), e);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
public static List<AdminBiz> getAdminBizList(){
|
|
|
|
public static List<AdminBiz> getAdminBizList(){
|
|
|
|
return adminBizList;
|
|
|
|
return adminBizList;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -202,12 +213,6 @@ public class XxlJobExecutor {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private void stopRpcProvider() {
|
|
|
|
private void stopRpcProvider() {
|
|
|
|
// stop invoker factory
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
XxlRpcInvokerFactory.getInstance().stop();
|
|
|
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
|
|
|
logger.error(e.getMessage(), e);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// stop provider factory
|
|
|
|
// stop provider factory
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
xxlRpcProviderFactory.stop();
|
|
|
|
xxlRpcProviderFactory.stop();
|
|
|
|