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