Class RegistryProtocol
java.lang.Object
org.apache.dubbo.registry.integration.RegistryProtocol
- All Implemented Interfaces:
ScopeModelAware,org.apache.dubbo.rpc.Protocol
- Direct Known Subclasses:
InterfaceCompatibleRegistryProtocol
public class RegistryProtocol
extends Object
implements org.apache.dubbo.rpc.Protocol, ScopeModelAware
TODO, replace RegistryProtocol completely in the future.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()<T> org.apache.dubbo.rpc.Exporter<T> export(org.apache.dubbo.rpc.Invoker<T> originInvoker) int<T> ClusterInvoker<T> getInvoker(Cluster cluster, Registry registry, Class<T> type, URL url) List<org.apache.dubbo.rpc.ProtocolServer> <T> ClusterInvoker<T> getServiceDiscoveryInvoker(Cluster cluster, Registry registry, Class<T> type, URL url) <T> void<T> voidReexport the invoker of the modified url<T> org.apache.dubbo.rpc.Invoker<T> <T> voidreRefer(ClusterInvoker<?> invoker, URL newSubscribeUrl) voidsetFrameworkModel(FrameworkModel frameworkModel) voidsetProtocol(org.apache.dubbo.rpc.Protocol protocol) voidsetProxyFactory(org.apache.dubbo.rpc.ProxyFactory proxyFactory) static URLtoSubscribeUrl(URL url) Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.dubbo.rpc.model.ScopeModelAware
setApplicationModel, setModuleModel, setScopeModel
-
Field Details
-
DEFAULT_REGISTER_PROVIDER_KEYS
-
DEFAULT_REGISTER_CONSUMER_KEYS
-
-
Constructor Details
-
RegistryProtocol
public RegistryProtocol()
-
-
Method Details
-
setFrameworkModel
- Specified by:
setFrameworkModelin interfaceScopeModelAware
-
setProtocol
public void setProtocol(org.apache.dubbo.rpc.Protocol protocol) -
setProxyFactory
public void setProxyFactory(org.apache.dubbo.rpc.ProxyFactory proxyFactory) -
getDefaultPort
public int getDefaultPort()- Specified by:
getDefaultPortin interfaceorg.apache.dubbo.rpc.Protocol
-
getOverrideListeners
-
export
public <T> org.apache.dubbo.rpc.Exporter<T> export(org.apache.dubbo.rpc.Invoker<T> originInvoker) throws org.apache.dubbo.rpc.RpcException - Specified by:
exportin interfaceorg.apache.dubbo.rpc.Protocol- Throws:
org.apache.dubbo.rpc.RpcException
-
reExport
-
reExport
Reexport the invoker of the modified url- Type Parameters:
T-- Parameters:
originInvoker-newInvokerUrl-
-
refer
public <T> org.apache.dubbo.rpc.Invoker<T> refer(Class<T> type, URL url) throws org.apache.dubbo.rpc.RpcException - Specified by:
referin interfaceorg.apache.dubbo.rpc.Protocol- Throws:
org.apache.dubbo.rpc.RpcException
-
getServiceDiscoveryInvoker
public <T> ClusterInvoker<T> getServiceDiscoveryInvoker(Cluster cluster, Registry registry, Class<T> type, URL url) -
getInvoker
-
reRefer
-
toSubscribeUrl
-
destroy
public void destroy()- Specified by:
destroyin interfaceorg.apache.dubbo.rpc.Protocol
-
getServers
- Specified by:
getServersin interfaceorg.apache.dubbo.rpc.Protocol
-