| 限定符和类型 | 方法和说明 |
|---|---|
Invoker<T> |
Exporter.getInvoker()
get invoker.
|
Invoker<?> |
RpcInvocation.getInvoker() |
Invoker<?> |
RpcServiceContext.getInvoker()
已过时。
Replace to getUrl()
|
Invoker<?> |
Invocation.getInvoker()
get the invoker in current context.
|
Invoker<?> |
RpcContext.getInvoker()
已过时。
Replace to getUrl()
|
<T> Invoker<T> |
ProxyFactory.getInvoker(T proxy,
Class<T> type,
URL url)
create invoker.
|
Invoker<T> |
ServerService.getInvoker(URL url) |
<T> Invoker<T> |
Protocol.refer(Class<T> type,
URL url)
Refer a remote service:
1. |
Invoker<?> |
PathResolver.resolve(String path) |
| 限定符和类型 | 方法和说明 |
|---|---|
List<Invoker<?>> |
RpcInvocation.getInvokedInvokers() |
List<Invoker<?>> |
Invocation.getInvokedInvokers()
Get all invoked invokers in current invocation.
|
List<Invoker<?>> |
RpcServiceContext.getInvokers()
已过时。
Replace to getUrls()
|
List<Invoker<?>> |
RpcContext.getInvokers()
已过时。
Replace to getUrls()
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
PathResolver.add(String path,
Invoker<?> invoker) |
void |
RpcInvocation.addInvokedInvoker(Invoker<?> invoker) |
void |
Invocation.addInvokedInvoker(Invoker<?> invoker)
To add invoked invokers into invocation.
|
void |
InvokerListener.destroyed(Invoker<?> invoker)
The invoker destroyed.
|
<T> Exporter<T> |
Protocol.export(Invoker<T> invoker)
Export service for remote invocation:
1. |
<T> T |
ProxyFactory.getProxy(Invoker<T> invoker)
create proxy.
|
<T> T |
ProxyFactory.getProxy(Invoker<T> invoker,
boolean generic)
create proxy.
|
Result |
BaseFilter.invoke(Invoker<?> invoker,
Invocation invocation)
Always call invoker.invoke() in the implementation to hand over the request to the next filter node.
|
RpcInvocation |
HeaderFilter.invoke(Invoker<?> invoker,
RpcInvocation invocation) |
void |
BaseFilter.Listener.onError(Throwable t,
Invoker<?> invoker,
Invocation invocation)
This method will be called on detection of framework exceptions, for example, TimeoutException, NetworkException
Exception raised in Filters, etc.
|
void |
BaseFilter.Listener.onResponse(Result appResponse,
Invoker<?> invoker,
Invocation invocation)
This method will only be called on successful remote rpc execution, that means, the service in on remote received
the request and the result (normal or exceptional) returned successfully.
|
void |
InvokerListener.referred(Invoker<?> invoker)
The invoker referred
|
void |
RpcInvocation.setInvoker(Invoker<?> invoker) |
RpcServiceContext |
RpcServiceContext.setInvoker(Invoker<?> invoker) |
RpcContext |
RpcContext.setInvoker(Invoker<?> invoker) |
| 限定符和类型 | 方法和说明 |
|---|---|
RpcServiceContext |
RpcServiceContext.setInvokers(List<Invoker<?>> invokers) |
RpcContext |
RpcContext.setInvokers(List<Invoker<?>> invokers) |
| 构造器和说明 |
|---|
RpcInvocation(Invocation invocation,
Invoker<?> invoker)
Deep clone of an invocation & put some service params into attachment from invoker (will not change the invoker in invocation)
|
RpcInvocation(ServiceModel serviceModel,
String methodName,
String interfaceName,
String protocolServiceKey,
Class<?>[] parameterTypes,
Object[] arguments,
Map<String,Object> attachments,
Invoker<?> invoker,
Map<Object,Object> attributes)
已过时。
deprecated, will be removed in 3.1.x
|
RpcInvocation(ServiceModel serviceModel,
String methodName,
String interfaceName,
String protocolServiceKey,
Class<?>[] parameterTypes,
Object[] arguments,
Map<String,Object> attachments,
Invoker<?> invoker,
Map<Object,Object> attributes,
InvokeMode invokeMode)
已过时。
deprecated, will be removed in 3.1.x
|
RpcInvocation(String targetServiceUniqueName,
ServiceModel serviceModel,
String methodName,
String interfaceName,
String protocolServiceKey,
Class<?>[] parameterTypes,
Object[] arguments,
Map<String,Object> attachments,
Invoker<?> invoker,
Map<Object,Object> attributes,
InvokeMode invokeMode)
To create a brand-new invocation
|
RpcInvocation(String methodName,
String interfaceName,
String protocolServiceKey,
Class<?>[] parameterTypes,
Object[] arguments,
Map<String,Object> attachments,
Invoker<?> invoker,
Map<Object,Object> attributes)
已过时。
deprecated, will be removed in 3.1.x
|
| 限定符和类型 | 方法和说明 |
|---|---|
Result |
AccessLogFilter.invoke(Invoker<?> invoker,
Invocation inv)
This method logs the access log for service method invocation call.
|
Result |
CompatibleFilter.invoke(Invoker<?> invoker,
Invocation invocation) |
Result |
ClassLoaderFilter.invoke(Invoker<?> invoker,
Invocation invocation) |
Result |
ProfilerServerFilter.invoke(Invoker<?> invoker,
Invocation invocation) |
Result |
ExecuteLimitFilter.invoke(Invoker<?> invoker,
Invocation invocation) |
Result |
TpsLimitFilter.invoke(Invoker<?> invoker,
Invocation invocation) |
Result |
ActiveLimitFilter.invoke(Invoker<?> invoker,
Invocation invocation) |
Result |
AdaptiveLoadBalanceFilter.invoke(Invoker<?> invoker,
Invocation invocation) |
Result |
ExceptionFilter.invoke(Invoker<?> invoker,
Invocation invocation) |
Result |
GenericImplFilter.invoke(Invoker<?> invoker,
Invocation invocation) |
Result |
EchoFilter.invoke(Invoker<?> invoker,
Invocation inv) |
Result |
ClassLoaderCallbackFilter.invoke(Invoker<?> invoker,
Invocation invocation) |
Result |
TokenFilter.invoke(Invoker<?> invoker,
Invocation inv) |
Result |
ContextFilter.invoke(Invoker<?> invoker,
Invocation invocation) |
Result |
DeprecatedFilter.invoke(Invoker<?> invoker,
Invocation invocation) |
Result |
TimeoutFilter.invoke(Invoker<?> invoker,
Invocation invocation) |
Result |
GenericFilter.invoke(Invoker<?> invoker,
Invocation inv) |
RpcInvocation |
TokenHeaderFilter.invoke(Invoker<?> invoker,
RpcInvocation invocation) |
void |
CompatibleFilter.onError(Throwable t,
Invoker<?> invoker,
Invocation invocation) |
void |
ClassLoaderFilter.onError(Throwable t,
Invoker<?> invoker,
Invocation invocation) |
void |
ProfilerServerFilter.onError(Throwable t,
Invoker<?> invoker,
Invocation invocation) |
void |
ExecuteLimitFilter.onError(Throwable t,
Invoker<?> invoker,
Invocation invocation) |
void |
ActiveLimitFilter.onError(Throwable t,
Invoker<?> invoker,
Invocation invocation) |
void |
AdaptiveLoadBalanceFilter.onError(Throwable t,
Invoker<?> invoker,
Invocation invocation) |
void |
ExceptionFilter.onError(Throwable e,
Invoker<?> invoker,
Invocation invocation) |
void |
GenericImplFilter.onError(Throwable t,
Invoker<?> invoker,
Invocation invocation) |
void |
ClassLoaderCallbackFilter.onError(Throwable t,
Invoker<?> invoker,
Invocation invocation) |
void |
ContextFilter.onError(Throwable t,
Invoker<?> invoker,
Invocation invocation) |
void |
TimeoutFilter.onError(Throwable t,
Invoker<?> invoker,
Invocation invocation) |
void |
GenericFilter.onError(Throwable t,
Invoker<?> invoker,
Invocation invocation) |
void |
CompatibleFilter.onResponse(Result appResponse,
Invoker<?> invoker,
Invocation invocation) |
void |
ClassLoaderFilter.onResponse(Result appResponse,
Invoker<?> invoker,
Invocation invocation) |
void |
ProfilerServerFilter.onResponse(Result appResponse,
Invoker<?> invoker,
Invocation invocation) |
void |
ExecuteLimitFilter.onResponse(Result appResponse,
Invoker<?> invoker,
Invocation invocation) |
void |
ActiveLimitFilter.onResponse(Result appResponse,
Invoker<?> invoker,
Invocation invocation) |
void |
AdaptiveLoadBalanceFilter.onResponse(Result appResponse,
Invoker<?> invoker,
Invocation invocation) |
void |
ExceptionFilter.onResponse(Result appResponse,
Invoker<?> invoker,
Invocation invocation) |
void |
GenericImplFilter.onResponse(Result appResponse,
Invoker<?> invoker,
Invocation invocation) |
void |
ClassLoaderCallbackFilter.onResponse(Result appResponse,
Invoker<?> invoker,
Invocation invocation) |
void |
ContextFilter.onResponse(Result appResponse,
Invoker<?> invoker,
Invocation invocation) |
void |
TimeoutFilter.onResponse(Result appResponse,
Invoker<?> invoker,
Invocation invocation) |
void |
GenericFilter.onResponse(Result appResponse,
Invoker<?> invoker,
Invocation inv) |
| 限定符和类型 | 类和说明 |
|---|---|
class |
ListenerInvokerWrapper<T>
ListenerInvoker
|
| 限定符和类型 | 方法和说明 |
|---|---|
Invoker<T> |
ListenerExporterWrapper.getInvoker() |
Invoker<T> |
ListenerInvokerWrapper.getInvoker() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
InvokerListenerAdapter.destroyed(Invoker<?> invoker) |
void |
DeprecatedInvokerListener.referred(Invoker<?> invoker) |
void |
InvokerListenerAdapter.referred(Invoker<?> invoker) |
| 构造器和说明 |
|---|
ListenerInvokerWrapper(Invoker<T> invoker,
List<InvokerListener> listeners) |
| 限定符和类型 | 类和说明 |
|---|---|
class |
AbstractInvoker<T>
This Invoker works on Consumer side.
|
class |
InvokerWrapper<T>
InvokerWrapper
|
class |
ReferenceCountInvokerWrapper<T> |
| 限定符和类型 | 方法和说明 |
|---|---|
Invoker<T> |
AbstractExporter.getInvoker() |
Invoker<T> |
ReferenceCountInvokerWrapper.getInvoker() |
<T> Invoker<T> |
InvokerCountWrapper.refer(Class<T> type,
URL url) |
<T> Invoker<T> |
ProtocolSecurityWrapper.refer(Class<T> type,
URL url) |
<T> Invoker<T> |
ProtocolListenerWrapper.refer(Class<T> type,
URL url) |
<T> Invoker<T> |
ProtocolSerializationWrapper.refer(Class<T> type,
URL url) |
<T> Invoker<T> |
AbstractProtocol.refer(Class<T> type,
URL url) |
| 限定符和类型 | 方法和说明 |
|---|---|
<T> Exporter<T> |
InvokerCountWrapper.export(Invoker<T> invoker) |
<T> Exporter<T> |
ProtocolSecurityWrapper.export(Invoker<T> invoker) |
<T> Exporter<T> |
ProtocolListenerWrapper.export(Invoker<T> invoker) |
<T> Exporter<T> |
AbstractProxyProtocol.export(Invoker<T> invoker) |
<T> Exporter<T> |
ProtocolSerializationWrapper.export(Invoker<T> invoker) |
| 构造器和说明 |
|---|
AbstractExporter(Invoker<T> invoker) |
InvokerWrapper(Invoker<T> invoker,
URL url) |
ReferenceCountInvokerWrapper(Invoker<T> invoker) |
| 限定符和类型 | 类和说明 |
|---|---|
class |
AbstractProxyInvoker<T>
This Invoker works on provider side, delegates RPC to interface implementation.
|
| 限定符和类型 | 方法和说明 |
|---|---|
<T> Invoker<T> |
AbstractFallbackJdkProxyFactory.getInvoker(T proxy,
Class<T> type,
URL url) |
| 限定符和类型 | 方法和说明 |
|---|---|
<T> T |
AbstractProxyFactory.getProxy(Invoker<T> invoker) |
<T> T |
AbstractProxyFactory.getProxy(Invoker<T> invoker,
boolean generic) |
abstract <T> T |
AbstractProxyFactory.getProxy(Invoker<T> invoker,
Class<?>[] types) |
<T> T |
AbstractFallbackJdkProxyFactory.getProxy(Invoker<T> invoker,
Class<?>[] interfaces) |
static Object |
InvocationUtil.invoke(Invoker<?> invoker,
RpcInvocation rpcInvocation) |
| 构造器和说明 |
|---|
InvokerInvocationHandler(Invoker<?> handler) |
| 限定符和类型 | 方法和说明 |
|---|---|
<T> Invoker<T> |
JavassistProxyFactory.getInvoker(T proxy,
Class<T> type,
URL url) |
| 限定符和类型 | 方法和说明 |
|---|---|
<T> T |
JavassistProxyFactory.getProxy(Invoker<T> invoker,
Class<?>[] interfaces) |
| 限定符和类型 | 方法和说明 |
|---|---|
<T> Invoker<T> |
JdkProxyFactory.getInvoker(T proxy,
Class<T> type,
URL url) |
| 限定符和类型 | 方法和说明 |
|---|---|
<T> T |
JdkProxyFactory.getProxy(Invoker<T> invoker,
Class<?>[] interfaces) |
| 限定符和类型 | 方法和说明 |
|---|---|
<T> Invoker<T> |
StubProxyFactoryWrapper.getInvoker(T proxy,
Class<T> type,
URL url) |
| 限定符和类型 | 方法和说明 |
|---|---|
<T> T |
StubProxyFactoryWrapper.getProxy(Invoker<T> invoker) |
<T> T |
StubProxyFactoryWrapper.getProxy(Invoker<T> invoker,
boolean generic) |
| 限定符和类型 | 类和说明 |
|---|---|
class |
StubInvoker<T> |
| 限定符和类型 | 方法和说明 |
|---|---|
<T> Invoker<T> |
StubProxyFactory.getInvoker(T proxy,
Class<T> type,
URL url) |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> T |
StubSuppliers.createStub(String interfaceName,
Invoker<T> invoker) |
<T> T |
StubProxyFactory.getProxy(Invoker<T> invoker) |
<T> T |
StubProxyFactory.getProxy(Invoker<T> invoker,
boolean generic) |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
StubSuppliers.addSupplier(String interfaceName,
Function<Invoker<?>,Object> supplier) |
| 限定符和类型 | 类和说明 |
|---|---|
class |
MockInvoker<T> |
| 限定符和类型 | 方法和说明 |
|---|---|
<T> Invoker<T> |
MockProtocol.protocolBindingRefer(Class<T> type,
URL url) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
AccessLogData.buildAccessLogData(Invoker<?> invoker,
Invocation inv) |
<T> Exporter<T> |
MockProtocol.export(Invoker<T> invoker) |
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.