拓展应用存活的检测点。
org.apache.dubbo.qos.probe.LivenessProbe
Dubbo QOS live
命令自动发现
暂无默认实现
Maven 项目结构:
src
|-main
|-java
|-com
|-xxx
|-XxxLivenessProbe.java (实现LivenessProbe接口)
|-resources
|-META-INF
|-dubbo
|-org.apache.dubbo.qos.probe.LivenessProbe (纯文本文件,内容为:xxx=com.xxx.XxxLivenessProbe)
XxxLivenessProbe.java:
package com.xxx;
public class XxxLivenessProbe implements LivenessProbe {
public boolean check() {
// ...
}
}
META-INF/dubbo/org.apache.dubbo.qos.probe.LivenessProbe:
xxx=com.xxx.XxxLivenessProbe