|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.alibaba.dubbo.rpc.protocol.AbstractProtocol
com.alibaba.dubbo.rpc.protocol.injvm.InjvmProtocol
public class InjvmProtocol
InjvmProtocol
| Field Summary | |
|---|---|
static int |
DEFAULT_PORT
|
static String |
NAME
|
| Constructor Summary | |
|---|---|
InjvmProtocol()
|
|
| Method Summary | ||
|---|---|---|
|
export(Invoker<T> invoker)
暴露远程服务: 1. |
|
int |
getDefaultPort()
获取缺省端口,当用户没有配置端口时使用。 |
|
static InjvmProtocol |
getInjvmProtocol()
|
|
boolean |
isInjvmRefer(URL url)
|
|
|
refer(Class<T> serviceType,
URL url)
引用远程服务: 1. |
|
| Methods inherited from class com.alibaba.dubbo.rpc.protocol.AbstractProtocol |
|---|
destroy |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.alibaba.dubbo.rpc.Protocol |
|---|
destroy |
| Field Detail |
|---|
public static final String NAME
public static final int DEFAULT_PORT
| Constructor Detail |
|---|
public InjvmProtocol()
| Method Detail |
|---|
public static InjvmProtocol getInjvmProtocol()
public int getDefaultPort()
Protocol
getDefaultPort in interface Protocol
public <T> Exporter<T> export(Invoker<T> invoker)
throws RpcException
Protocol
export in interface ProtocolT - 服务的类型invoker - 服务的执行体
RpcException - 当暴露服务出错时抛出,比如端口已占用
public <T> Invoker<T> refer(Class<T> serviceType,
URL url)
throws RpcException
Protocol
refer in interface ProtocolT - 服务的类型serviceType - 服务的类型url - 远程服务的URL地址
RpcException - 当连接服务提供方失败时抛出public boolean isInjvmRefer(URL url)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||