Networker Extension
Summary
Extension for peer to peer network grouping.
Extension Interface
org.apache.dubbo.remoting.p2p.Networker
Extension Configuration
<dubbo:protocol networker="xxx" />
<!-- default configuration, it takes effect if networker attribute is not set in <dubbo:protocol> -->
<dubbo:provider networker="xxx" />
Existing Extension
org.apache.dubbo.remoting.p2p.support.MulticastNetworker
org.apache.dubbo.remoting.p2p.support.FileNetworker
Extension Guide
Directory layout:
src
|-main
|-java
|-com
|-xxx
|-XxxNetworker.java (Networker implementation)
|-resources
|-META-INF
|-dubbo
|-org.apache.dubbo.remoting.p2p.Networker (plain text file with the content: xxx=com.xxx.XxxNetworker)
XxxNetworker.java:
package com.xxx;
import org.apache.dubbo.remoting.p2p.Networker;
public class XxxNetworker implements Networker {
public Group lookup(URL url) {
// ...
}
}
META-INF/dubbo/org.apache.dubbo.remoting.p2p.Networker:
xxx=com.xxx.XxxNetworker
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)