public class InjvmProtocol extends AbstractProtocol implements Protocol
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
DEFAULT_PORT |
static String |
NAME |
| 构造器和说明 |
|---|
InjvmProtocol() |
| 限定符和类型 | 方法和说明 |
|---|---|
<T> Exporter<T> |
export(Invoker<T> invoker)
Export service for remote invocation:
1. |
int |
getDefaultPort()
Get default port when user doesn't config the port.
|
static InjvmProtocol |
getInjvmProtocol() |
boolean |
isInjvmRefer(URL url) |
<T> Invoker<T> |
refer(Class<T> serviceType,
URL url)
Refer a remote service:
1. |
destroypublic static final int DEFAULT_PORT
public static InjvmProtocol getInjvmProtocol()
public int getDefaultPort()
ProtocolgetDefaultPort 在接口中 Protocolpublic <T> Exporter<T> export(Invoker<T> invoker) throws RpcException
Protocolexport 在接口中 ProtocolT - Service typeinvoker - Service invokerRpcException - thrown when error occurs during export the service, for example: port is occupiedpublic <T> Invoker<T> refer(Class<T> serviceType, URL url) throws RpcException
Protocolrefer 在接口中 ProtocolT - Service typeserviceType - Service classurl - URL address for the remote serviceRpcException - when there's any error while connecting to the service providerpublic boolean isInjvmRefer(URL url)
Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.