Readiness Probe

Readiness Probe

Extension Description

Extend application readiness detection points.

Extension Interface

org.apache.dubbo.qos.probe.ReadinessProbe

Extension Configuration

Dubbo QOS ready command auto-discovery

Known Extensions

  • org.apache.dubbo.qos.probe.impl.BootstrapReadinessProbe
  • org.apache.dubbo.qos.probe.impl.ProviderReadinessProbe

Extension Example

Maven project structure:

  1. src
  2. |-main
  3. |-java
  4. |-com
  5. |-xxx
  6. |-XxxReadinessProbe.java (implements ReadinessProbe interface)
  7. |-resources
  8. |-META-INF
  9. |-dubbo
  10. |-org.apache.dubbo.qos.probe.ReadinessProbe (plain text file, content: xxx=com.xxx.XxxReadinessProbe)

XxxReadinessProbe.java:

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

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

  1. xxx=com.xxx.XxxReadinessProbe

Feedback

Was this page helpful?

Yes No

Last modified September 30, 2024: Update & Translate Overview Docs (#3040) (d37ebceaea7)