拓展应用启动的检测点。
org.apache.dubbo.qos.probe.StartupProbe
Dubbo QOS startup
命令自动发现
org.apache.dubbo.qos.probe.impl.BootstrapLivenessProbe
Maven 项目结构:
src
|-main
|-java
|-com
|-xxx
|-XxxStartupProbe.java (实现StartupProbe接口)
|-resources
|-META-INF
|-dubbo
|-org.apache.dubbo.qos.probe.StartupProbe (纯文本文件,内容为:xxx=com.xxx.XxxStartupProbe)
XxxStartupProbee.java:
package com.xxx;
public class XxxStartupProbe implements StartupProbe {
public boolean check() {
// ...
}
}
META-INF/dubbo/org.apache.dubbo.qos.probe.StartupProbe:
xxx=com.xxx.XxxStartupProbe