执行器的启动

com.xxl.job.executor.core.config.XxlJobConfig#xxlJobExecutor
xxl-job2.2.1源码执行器端源码分析
看com.xxl.job.core.executor.impl.XxlJobSpringExecutor
实现了org.springframework.beans.factory.SmartInitializingSingleton
xxl-job2.2.1源码执行器端源码分析
此时调用父类的start方法
父类为com.xxl.job.core.executor.XxlJobExecutor
进行如下操作
xxl-job2.2.1源码执行器端源码分析
com.xxl.job.core.executor.XxlJobExecutor#initEmbedServer
xxl-job2.2.1源码执行器端源码分析
com.xxl.job.core.server.EmbedServer类
使用了netty
xxl-job2.2.1源码执行器端源码分析
这里进行了执行器的注册
com.xxl.job.core.thread.ExecutorRegistryThread
执行器注册线程
com.xxl.job.core.thread.ExecutorRegistryThread#start
这里新建了个守护线程。
xxl-job2.2.1源码执行器端源码分析
日志
xxl-job2.2.1源码执行器端源码分析
com.xxl.job.core.biz.client.AdminBizClient
服务注册的方法
xxl-job2.2.1源码执行器端源码分析
利用http调用admin服务,进行服务的注册。

相关文章:

  • 2018-06-25
  • 2019-09-11
  • 2019-09-06
  • 2021-08-21
  • 2019-05-16
  • 2019-09-18
  • 2021-10-12
  • 2021-06-11
猜你喜欢
  • 2019-06-17
  • 2021-12-03
  • 2021-08-01
  • 2021-11-12
  • 2020-05-30
  • 2021-05-21
  • 2021-05-24
  • 2019-06-11
相关资源
相似解决方案