public class DubboProtocol extends AbstractProtocol
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_PORT |
static String |
NAME |
| Constructor and Description |
|---|
DubboProtocol() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
<T> Exporter<T> |
export(Invoker<T> invoker) |
int |
getDefaultPort() |
static DubboProtocol |
getDubboProtocol()
Deprecated.
Use
getDubboProtocol(ScopeModel) instead |
static DubboProtocol |
getDubboProtocol(org.apache.dubbo.rpc.model.ScopeModel scopeModel) |
Collection<Exporter<?>> |
getExporters() |
Collection<Invoker<?>> |
getInvokers() |
<T> Invoker<T> |
protocolBindingRefer(Class<T> serviceType,
org.apache.dubbo.common.URL url) |
<T> Invoker<T> |
refer(Class<T> type,
org.apache.dubbo.common.URL url) |
getExporterMap, getServers, setFrameworkModelequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetApplicationModel, setModuleModel, setScopeModelpublic static final String NAME
public static final int DEFAULT_PORT
@Deprecated public static DubboProtocol getDubboProtocol()
getDubboProtocol(ScopeModel) insteadpublic static DubboProtocol getDubboProtocol(org.apache.dubbo.rpc.model.ScopeModel scopeModel)
public Collection<Exporter<?>> getExporters()
getExporters in class AbstractProtocolpublic Collection<Invoker<?>> getInvokers()
public int getDefaultPort()
public <T> Exporter<T> export(Invoker<T> invoker) throws RpcException
RpcExceptionpublic <T> Invoker<T> refer(Class<T> type, org.apache.dubbo.common.URL url) throws RpcException
refer in interface Protocolrefer in class AbstractProtocolRpcExceptionpublic <T> Invoker<T> protocolBindingRefer(Class<T> serviceType, org.apache.dubbo.common.URL url) throws RpcException
protocolBindingRefer in class AbstractProtocolRpcExceptionpublic void destroy()
destroy in interface Protocoldestroy in class AbstractProtocolCopyright © 2011–2022 The Apache Software Foundation. All rights reserved.