StatusChecker Extension
Summary
Extension to check status of resources service depends on. This status checker can be used in both telnet status command and status page.
Extension Interface
org.apache.dubbo.common.status.StatusChecker
Extension Configuration
<dubbo:protocol status="xxx,yyy" />
<!-- default configuration, will take effect if no status attribute is configured in <dubbo:protocol> -->
<dubbo:provider status="xxx,yyy" />
Existing Extension
org.apache.dubbo.common.status.support.MemoryStatusChecker
org.apache.dubbo.common.status.support.LoadStatusChecker
org.apache.dubbo.rpc.dubbo.status.ServerStatusChecker
org.apache.dubbo.rpc.dubbo.status.ThreadPoolStatusChecker
org.apache.dubbo.registry.directory.RegistryStatusChecker
org.apache.dubbo.rpc.config.spring.status.SpringStatusChecker
org.apache.dubbo.rpc.config.spring.status.DataSourceStatusChecker
Extension Guide
Directory layout:
src
|-main
|-java
|-com
|-xxx
|-XxxStatusChecker.java (StatusChecker implementation)
|-resources
|-META-INF
|-dubbo
|-org.apache.dubbo.common.status.StatusChecker (plain text file with the content: xxx=com.xxx.XxxStatusChecker)
XxxStatusChecker.java:
package com.xxx;
import org.apache.dubbo.common.status.StatusChecker;
public class XxxStatusChecker implements StatusChecker {
public Status check() {
// ...
}
}
META-INF/dubbo/org.apache.dubbo.common.status.StatusChecker:
xxx=com.xxx.XxxStatusChecker
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.
Last modified January 22, 2021: Merge branch 'master' of https://github.com/apache/dubbo-website (f48eac9)