Startup 启动探针

Startup 启动探针

扩展说明

拓展应用启动的检测点。

扩展接口

org.apache.dubbo.qos.probe.StartupProbe

扩展配置

Dubbo QOS startup 命令自动发现

已知扩展

  • org.apache.dubbo.qos.probe.impl.BootstrapLivenessProbe

扩展示例

Maven 项目结构:

  1. src
  2. |-main
  3. |-java
  4. |-com
  5. |-xxx
  6. |-XxxStartupProbe.java (实现StartupProbe接口)
  7. |-resources
  8. |-META-INF
  9. |-dubbo
  10. |-org.apache.dubbo.qos.probe.StartupProbe (纯文本文件,内容为:xxx=com.xxx.XxxStartupProbe)

XxxStartupProbee.java:

  1. package com.xxx;
  2. public class XxxStartupProbe implements StartupProbe {
  3. public boolean check() {
  4. // ...
  5. }
  6. }

META-INF/dubbo/org.apache.dubbo.qos.probe.StartupProbe:

  1. xxx=com.xxx.XxxStartupProbe

最后修改 March 2, 2023: Fix alias forward in docs3-v2 (#2342) (f16c1535592)