public class RegistryProtocol extends Object implements com.alibaba.dubbo.rpc.Protocol
| Modifier and Type | Class and Description |
|---|---|
static class |
RegistryProtocol.InvokerDelegete<T> |
| Constructor and Description |
|---|
RegistryProtocol() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
<T> com.alibaba.dubbo.rpc.Exporter<T> |
export(com.alibaba.dubbo.rpc.Invoker<T> originInvoker) |
int |
getDefaultPort() |
Map<com.alibaba.dubbo.common.URL,NotifyListener> |
getOverrideListeners() |
static RegistryProtocol |
getRegistryProtocol() |
<T> com.alibaba.dubbo.rpc.Invoker<T> |
refer(Class<T> type,
com.alibaba.dubbo.common.URL url) |
void |
register(com.alibaba.dubbo.common.URL registryUrl,
com.alibaba.dubbo.common.URL registedProviderUrl) |
void |
setCluster(Cluster cluster) |
void |
setProtocol(com.alibaba.dubbo.rpc.Protocol protocol) |
void |
setProxyFactory(com.alibaba.dubbo.rpc.ProxyFactory proxyFactory) |
void |
setRegistryFactory(RegistryFactory registryFactory) |
public static RegistryProtocol getRegistryProtocol()
public void setCluster(Cluster cluster)
public void setProtocol(com.alibaba.dubbo.rpc.Protocol protocol)
public void setRegistryFactory(RegistryFactory registryFactory)
public void setProxyFactory(com.alibaba.dubbo.rpc.ProxyFactory proxyFactory)
public int getDefaultPort()
getDefaultPort in interface com.alibaba.dubbo.rpc.Protocolpublic Map<com.alibaba.dubbo.common.URL,NotifyListener> getOverrideListeners()
public void register(com.alibaba.dubbo.common.URL registryUrl,
com.alibaba.dubbo.common.URL registedProviderUrl)
public <T> com.alibaba.dubbo.rpc.Exporter<T> export(com.alibaba.dubbo.rpc.Invoker<T> originInvoker)
throws com.alibaba.dubbo.rpc.RpcException
export in interface com.alibaba.dubbo.rpc.Protocolcom.alibaba.dubbo.rpc.RpcExceptionpublic <T> com.alibaba.dubbo.rpc.Invoker<T> refer(Class<T> type, com.alibaba.dubbo.common.URL url) throws com.alibaba.dubbo.rpc.RpcException
refer in interface com.alibaba.dubbo.rpc.Protocolcom.alibaba.dubbo.rpc.RpcExceptionpublic void destroy()
destroy in interface com.alibaba.dubbo.rpc.ProtocolCopyright © 2011–2018 The Apache Software Foundation. All rights reserved.