提交 03979398 编写于 作者: 许雪里's avatar 许雪里

Clean Code

上级 1970f7f3
...@@ -78,7 +78,7 @@ public final class XxlJobDynamicScheduler implements ApplicationContextAware { ...@@ -78,7 +78,7 @@ public final class XxlJobDynamicScheduler implements ApplicationContextAware {
// valid // valid
Assert.notNull(scheduler, "quartz scheduler is null"); Assert.notNull(scheduler, "quartz scheduler is null");
logger.info(">>>>>>>>> init quartz scheduler success.[{}]", scheduler); logger.info(">>>>>>>>> init xxl-job admin success.");
} }
public void destroy(){ public void destroy(){
......
...@@ -133,7 +133,7 @@ public class XxlJobExecutor implements ApplicationContextAware { ...@@ -133,7 +133,7 @@ public class XxlJobExecutor implements ApplicationContextAware {
// ---------------------- job handler repository ---------------------- // ---------------------- job handler repository ----------------------
private static ConcurrentHashMap<String, IJobHandler> jobHandlerRepository = new ConcurrentHashMap<String, IJobHandler>(); private static ConcurrentHashMap<String, IJobHandler> jobHandlerRepository = new ConcurrentHashMap<String, IJobHandler>();
public static IJobHandler registJobHandler(String name, IJobHandler jobHandler){ public static IJobHandler registJobHandler(String name, IJobHandler jobHandler){
logger.info("xxl-job register jobhandler success, name:{}, jobHandler:{}", name, jobHandler); logger.info(">>>>>>>>>>> xxl-job register jobhandler success, name:{}, jobHandler:{}", name, jobHandler);
return jobHandlerRepository.put(name, jobHandler); return jobHandlerRepository.put(name, jobHandler);
} }
public static IJobHandler loadJobHandler(String name){ public static IJobHandler loadJobHandler(String name){
......
...@@ -39,7 +39,7 @@ public class XxlJobConfig { ...@@ -39,7 +39,7 @@ public class XxlJobConfig {
@Bean(initMethod = "start", destroyMethod = "destroy") @Bean(initMethod = "start", destroyMethod = "destroy")
public XxlJobExecutor xxlJobExecutor() { public XxlJobExecutor xxlJobExecutor() {
logger.error("------------ xxlJobExecutor -----------"); logger.info(">>>>>>>>>>> xxl-job config init.");
XxlJobExecutor xxlJobExecutor = new XxlJobExecutor(); XxlJobExecutor xxlJobExecutor = new XxlJobExecutor();
xxlJobExecutor.setIp(ip); xxlJobExecutor.setIp(ip);
xxlJobExecutor.setPort(port); xxlJobExecutor.setPort(port);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册