类 RegistryProtocol
- java.lang.Object
-
- org.apache.dubbo.registry.integration.RegistryProtocol
-
- 所有已实现的接口:
org.apache.dubbo.rpc.Protocol
public class RegistryProtocol extends Object implements org.apache.dubbo.rpc.Protocol
TODO, replace RegistryProtocol completely in the future.
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classRegistryProtocol.InvokerDelegate<T>
-
字段概要
字段 修饰符和类型 字段 说明 static String[]DEFAULT_REGISTER_CONSUMER_KEYSstatic String[]DEFAULT_REGISTER_PROVIDER_KEYS
-
构造器概要
构造器 构造器 说明 RegistryProtocol()
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 voiddestroy()<T> org.apache.dubbo.rpc.Exporter<T>export(org.apache.dubbo.rpc.Invoker<T> originInvoker)intgetDefaultPort()<T> ClusterInvoker<T>getInvoker(Cluster cluster, Registry registry, Class<T> type, URL url)Map<URL,NotifyListener>getOverrideListeners()String[]getParamsToRegistry(String[] defaultKeys, String[] additionalParameterKeys)static RegistryProtocolgetRegistryProtocol()List<org.apache.dubbo.rpc.ProtocolServer>getServers()<T> ClusterInvoker<T>getServiceDiscoveryInvoker(Cluster cluster, Registry registry, Class<T> type, URL url)<T> voidreExport(org.apache.dubbo.rpc.Exporter<T> exporter, URL newInvokerUrl)<T> voidreExport(org.apache.dubbo.rpc.Invoker<T> originInvoker, URL newInvokerUrl)Reexport the invoker of the modified url<T> org.apache.dubbo.rpc.Invoker<T>refer(Class<T> type, URL url)<T> voidreRefer(ClusterInvoker<?> invoker, URL newSubscribeUrl)voidsetProtocol(org.apache.dubbo.rpc.Protocol protocol)voidsetProxyFactory(org.apache.dubbo.rpc.ProxyFactory proxyFactory)voidsetRegistryFactory(RegistryFactory registryFactory)static URLtoSubscribeUrl(URL url)
-
-
-
方法详细资料
-
setProtocol
public void setProtocol(org.apache.dubbo.rpc.Protocol protocol)
-
setRegistryFactory
public void setRegistryFactory(RegistryFactory registryFactory)
-
setProxyFactory
public void setProxyFactory(org.apache.dubbo.rpc.ProxyFactory proxyFactory)
-
getDefaultPort
public int getDefaultPort()
- 指定者:
getDefaultPort在接口中org.apache.dubbo.rpc.Protocol
-
getOverrideListeners
public Map<URL,NotifyListener> getOverrideListeners()
-
export
public <T> org.apache.dubbo.rpc.Exporter<T> export(org.apache.dubbo.rpc.Invoker<T> originInvoker) throws org.apache.dubbo.rpc.RpcException- 指定者:
export在接口中org.apache.dubbo.rpc.Protocol- 抛出:
org.apache.dubbo.rpc.RpcException
-
reExport
public <T> void reExport(org.apache.dubbo.rpc.Exporter<T> exporter, URL newInvokerUrl)
-
reExport
public <T> void reExport(org.apache.dubbo.rpc.Invoker<T> originInvoker, URL newInvokerUrl)Reexport the invoker of the modified url- 类型参数:
T-- 参数:
originInvoker-newInvokerUrl-
-
refer
public <T> org.apache.dubbo.rpc.Invoker<T> refer(Class<T> type, URL url) throws org.apache.dubbo.rpc.RpcException
- 指定者:
refer在接口中org.apache.dubbo.rpc.Protocol- 抛出:
org.apache.dubbo.rpc.RpcException
-
getServiceDiscoveryInvoker
public <T> ClusterInvoker<T> getServiceDiscoveryInvoker(Cluster cluster, Registry registry, Class<T> type, URL url)
-
getInvoker
public <T> ClusterInvoker<T> getInvoker(Cluster cluster, Registry registry, Class<T> type, URL url)
-
reRefer
public <T> void reRefer(ClusterInvoker<?> invoker, URL newSubscribeUrl)
-
getParamsToRegistry
public String[] getParamsToRegistry(String[] defaultKeys, String[] additionalParameterKeys)
-
destroy
public void destroy()
- 指定者:
destroy在接口中org.apache.dubbo.rpc.Protocol
-
getServers
public List<org.apache.dubbo.rpc.ProtocolServer> getServers()
- 指定者:
getServers在接口中org.apache.dubbo.rpc.Protocol
-
getRegistryProtocol
public static RegistryProtocol getRegistryProtocol()
-
-