Peer-to-peer network node builder.
org.apache.dubbo.remoting.p2p.Networker
<dubbo:protocol networker="xxx" />
<!-- The default value setting, when <dubbo:protocol> does not configure the networker attribute, use this configuration -->
<dubbo:provider networker="xxx" />
org.apache.dubbo.remoting.p2p.support.MulticastNetworker
org.apache.dubbo.remoting.p2p.support.FileNetworker
Maven project structure:
src
|-main
|-java
|-com
|-xxx
|-XxxNetworker.java (implement Networker interface)
|-resources
|-META-INF
|-dubbo
|-org.apache.dubbo.remoting.p2p.Networker (plain text file, 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