public class RegistryProtocol extends Object implements org.apache.dubbo.rpc.Protocol
| Modifier and Type | Class and Description |
|---|---|
static class |
RegistryProtocol.InvokerDelegate<T> |
| Modifier and Type | Field and Description |
|---|---|
static String[] |
DEFAULT_REGISTER_CONSUMER_KEYS |
static String[] |
DEFAULT_REGISTER_PROVIDER_KEYS |
| Constructor and Description |
|---|
RegistryProtocol() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
<T> org.apache.dubbo.rpc.Exporter<T> |
export(org.apache.dubbo.rpc.Invoker<T> originInvoker) |
int |
getDefaultPort() |
Map<URL,NotifyListener> |
getOverrideListeners() |
String[] |
getParamsToRegistry(String[] defaultKeys,
String[] additionalParameterKeys) |
URL |
getRegisteredConsumerUrl(URL consumerUrl,
URL registryUrl) |
static RegistryProtocol |
getRegistryProtocol() |
List<org.apache.dubbo.rpc.ProtocolServer> |
getServers() |
<T> void |
reExport(org.apache.dubbo.rpc.Invoker<T> originInvoker,
URL newInvokerUrl) |
<T> org.apache.dubbo.rpc.Invoker<T> |
refer(Class<T> type,
URL url) |
void |
register(URL registryUrl,
URL registeredProviderUrl) |
void |
setCluster(Cluster cluster) |
void |
setProtocol(org.apache.dubbo.rpc.Protocol protocol) |
void |
setProxyFactory(org.apache.dubbo.rpc.ProxyFactory proxyFactory) |
void |
setRegistryFactory(RegistryFactory registryFactory) |
public static final String[] DEFAULT_REGISTER_PROVIDER_KEYS
public static final String[] DEFAULT_REGISTER_CONSUMER_KEYS
public void setCluster(Cluster cluster)
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 in interface 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 in interface org.apache.dubbo.rpc.Protocolorg.apache.dubbo.rpc.RpcExceptionpublic <T> void reExport(org.apache.dubbo.rpc.Invoker<T> originInvoker,
URL newInvokerUrl)
public <T> org.apache.dubbo.rpc.Invoker<T> refer(Class<T> type, URL url) throws org.apache.dubbo.rpc.RpcException
refer in interface org.apache.dubbo.rpc.Protocolorg.apache.dubbo.rpc.RpcExceptionpublic String[] getParamsToRegistry(String[] defaultKeys, String[] additionalParameterKeys)
public void destroy()
destroy in interface org.apache.dubbo.rpc.Protocolpublic List<org.apache.dubbo.rpc.ProtocolServer> getServers()
getServers in interface org.apache.dubbo.rpc.Protocolpublic static RegistryProtocol getRegistryProtocol()
Copyright © 2011–2019 The Apache Software Foundation. All rights reserved.