|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.alibaba.dubbo.registry.integration.RegistryProtocol
public class RegistryProtocol
RegistryProtocol
Nested Class Summary | |
---|---|
static class |
RegistryProtocol.InvokerDelegete<T>
|
Constructor Summary | |
---|---|
RegistryProtocol()
|
Method Summary | ||
---|---|---|
void |
destroy()
释放协议: 1. |
|
|
export(Invoker<T> originInvoker)
暴露远程服务: 1. |
|
int |
getDefaultPort()
获取缺省端口,当用户没有配置端口时使用。 |
|
Map<URL,NotifyListener> |
getOverrideListeners()
|
|
static RegistryProtocol |
getRegistryProtocol()
|
|
|
refer(Class<T> type,
URL url)
引用远程服务: 1. |
|
void |
setCluster(Cluster cluster)
|
|
void |
setProtocol(Protocol protocol)
|
|
void |
setProxyFactory(ProxyFactory proxyFactory)
|
|
void |
setRegistryFactory(RegistryFactory registryFactory)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RegistryProtocol()
Method Detail |
---|
public static RegistryProtocol getRegistryProtocol()
public void setCluster(Cluster cluster)
public void setProtocol(Protocol protocol)
public void setRegistryFactory(RegistryFactory registryFactory)
public void setProxyFactory(ProxyFactory proxyFactory)
public int getDefaultPort()
Protocol
getDefaultPort
in interface Protocol
public Map<URL,NotifyListener> getOverrideListeners()
public <T> Exporter<T> export(Invoker<T> originInvoker) throws RpcException
Protocol
export
in interface Protocol
T
- 服务的类型originInvoker
- 服务的执行体
RpcException
- 当暴露服务出错时抛出,比如端口已占用public <T> Invoker<T> refer(Class<T> type, URL url) throws RpcException
Protocol
refer
in interface Protocol
T
- 服务的类型type
- 服务的类型url
- 远程服务的URL地址
RpcException
- 当连接服务提供方失败时抛出public void destroy()
Protocol
destroy
in interface Protocol
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |