public class RegistryProtocol extends Object implements org.apache.dubbo.rpc.Protocol
| 限定符和类型 | 类和说明 |
|---|---|
static class |
RegistryProtocol.InvokerDelegate<T> |
| 限定符和类型 | 字段和说明 |
|---|---|
static String[] |
DEFAULT_REGISTER_CONSUMER_KEYS |
static String[] |
DEFAULT_REGISTER_PROVIDER_KEYS |
| 构造器和说明 |
|---|
RegistryProtocol() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
destroy() |
<T> org.apache.dubbo.rpc.Exporter<T> |
export(org.apache.dubbo.rpc.Invoker<T> originInvoker) |
int |
getDefaultPort() |
<T> ClusterInvoker<T> |
getInvoker(Cluster cluster,
Registry registry,
Class<T> type,
URL url) |
Map<URL,NotifyListener> |
getOverrideListeners() |
String[] |
getParamsToRegistry(String[] defaultKeys,
String[] additionalParameterKeys) |
static RegistryProtocol |
getRegistryProtocol() |
List<org.apache.dubbo.rpc.ProtocolServer> |
getServers() |
<T> ClusterInvoker<T> |
getServiceDiscoveryInvoker(Cluster cluster,
Registry registry,
Class<T> type,
URL url) |
<T> void |
reExport(org.apache.dubbo.rpc.Exporter<T> exporter,
URL newInvokerUrl) |
<T> void |
reExport(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> void |
reRefer(ClusterInvoker<?> invoker,
URL newSubscribeUrl) |
void |
setProtocol(org.apache.dubbo.rpc.Protocol protocol) |
void |
setProxyFactory(org.apache.dubbo.rpc.ProxyFactory proxyFactory) |
void |
setRegistryFactory(RegistryFactory registryFactory) |
static URL |
toSubscribeUrl(URL url) |
public static final String[] DEFAULT_REGISTER_PROVIDER_KEYS
public static final String[] DEFAULT_REGISTER_CONSUMER_KEYS
public void setProtocol(org.apache.dubbo.rpc.Protocol protocol)
public void setRegistryFactory(RegistryFactory registryFactory)
public void setProxyFactory(org.apache.dubbo.rpc.ProxyFactory proxyFactory)
public int getDefaultPort()
getDefaultPort 在接口中 org.apache.dubbo.rpc.Protocolpublic Map<URL,NotifyListener> getOverrideListeners()
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.Protocolorg.apache.dubbo.rpc.RpcExceptionpublic <T> void reExport(org.apache.dubbo.rpc.Exporter<T> exporter,
URL newInvokerUrl)
public <T> void reExport(org.apache.dubbo.rpc.Invoker<T> originInvoker,
URL newInvokerUrl)
T - originInvoker - newInvokerUrl - 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.Protocolorg.apache.dubbo.rpc.RpcExceptionpublic <T> ClusterInvoker<T> getServiceDiscoveryInvoker(Cluster cluster, Registry registry, Class<T> type, URL url)
public <T> ClusterInvoker<T> getInvoker(Cluster cluster, Registry registry, Class<T> type, URL url)
public <T> void reRefer(ClusterInvoker<?> invoker, URL newSubscribeUrl)
public String[] getParamsToRegistry(String[] defaultKeys, String[] additionalParameterKeys)
public void destroy()
destroy 在接口中 org.apache.dubbo.rpc.Protocolpublic List<org.apache.dubbo.rpc.ProtocolServer> getServers()
getServers 在接口中 org.apache.dubbo.rpc.Protocolpublic static RegistryProtocol getRegistryProtocol()
Copyright © 2011–2021 The Apache Software Foundation. All rights reserved.