@Extension(value="dubbo") @Singleton public class DubboProtocol extends com.alibaba.dubbo.rpc.protocol.AbstractProtocol
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
COMPATIBLE_CODEC_NAME |
static int |
DEFAULT_PORT |
static String |
NAME |
| 构造器和说明 |
|---|
DubboProtocol() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
destroy() |
<T> com.alibaba.dubbo.rpc.Exporter<T> |
export(com.alibaba.dubbo.rpc.Invoker<T> invoker) |
int |
getDefaultPort() |
static DubboProtocol |
getDubboProtocol() |
Collection<com.alibaba.dubbo.rpc.Exporter<?>> |
getExporters() |
com.alibaba.dubbo.rpc.Invoker<?> |
getInvoker(com.alibaba.dubbo.remoting.Channel channel,
com.alibaba.dubbo.rpc.Invocation inv) |
Collection<com.alibaba.dubbo.rpc.Invoker<?>> |
getInvokers() |
Collection<com.alibaba.dubbo.remoting.exchange.ExchangeServer> |
getServers() |
<T> com.alibaba.dubbo.rpc.Invoker<T> |
refer(Class<T> serviceType,
com.alibaba.dubbo.common.URL url) |
public static final int DEFAULT_PORT
public static DubboProtocol getDubboProtocol()
public Collection<com.alibaba.dubbo.remoting.exchange.ExchangeServer> getServers()
public Collection<com.alibaba.dubbo.rpc.Exporter<?>> getExporters()
public com.alibaba.dubbo.rpc.Invoker<?> getInvoker(com.alibaba.dubbo.remoting.Channel channel,
com.alibaba.dubbo.rpc.Invocation inv)
throws com.alibaba.dubbo.remoting.RemotingException
com.alibaba.dubbo.remoting.RemotingExceptionpublic Collection<com.alibaba.dubbo.rpc.Invoker<?>> getInvokers()
public int getDefaultPort()
public <T> com.alibaba.dubbo.rpc.Exporter<T> export(com.alibaba.dubbo.rpc.Invoker<T> invoker)
throws JahhanException
JahhanExceptionpublic <T> com.alibaba.dubbo.rpc.Invoker<T> refer(Class<T> serviceType, com.alibaba.dubbo.common.URL url) throws JahhanException
JahhanExceptionCopyright © 2018. All rights reserved.