接口的使用
org.apache.dubbo.rpc.Invoker
-
-
org.apache.dubbo.rpc中Invoker的使用
返回Invoker的org.apache.dubbo.rpc中的方法 修饰符和类型 方法 说明 Invoker<T>Exporter. getInvoker()get invoker.Invoker<?>Invocation. getInvoker()get the invoker in current context.<T> Invoker<T>ProxyFactory. getInvoker(T proxy, Class<T> type, URL url)create invoker.Invoker<?>RpcContext. getInvoker()已过时。Replace to getUrl()Invoker<?>RpcInvocation. getInvoker()Invoker<?>RpcServiceContext. getInvoker()已过时。Replace to getUrl()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)返回变量类型为Invoker的类型的org.apache.dubbo.rpc中的方法 修饰符和类型 方法 说明 List<Invoker<?>>RpcContext. getInvokers()已过时。Replace to getUrls()List<Invoker<?>>RpcServiceContext. getInvokers()已过时。Replace to getUrls()参数类型为Invoker的org.apache.dubbo.rpc中的方法 修饰符和类型 方法 说明 voidPathResolver. add(String path, Invoker<?> invoker)voidInvokerListener. destroyed(Invoker<?> invoker)The invoker destroyed.<T> Exporter<T>Protocol. export(Invoker<T> invoker)Export service for remote invocation:
1.<T> TProxyFactory. getProxy(Invoker<T> invoker)create proxy.<T> TProxyFactory. getProxy(Invoker<T> invoker, boolean generic)create proxy.ResultBaseFilter. invoke(Invoker<?> invoker, Invocation invocation)Always call invoker.invoke() in the implementation to hand over the request to the next filter node.RpcInvocationHeaderFilter. invoke(Invoker<?> invoker, RpcInvocation invocation)voidBaseFilter.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.voidBaseFilter.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.voidInvokerListener. referred(Invoker<?> invoker)The invoker referredRpcContextRpcContext. setInvoker(Invoker<?> invoker)voidRpcInvocation. setInvoker(Invoker<?> invoker)RpcServiceContextRpcServiceContext. setInvoker(Invoker<?> invoker)类型变量类型为Invoker的org.apache.dubbo.rpc中的方法参数 修饰符和类型 方法 说明 RpcContextRpcContext. setInvokers(List<Invoker<?>> invokers)RpcServiceContextRpcServiceContext. setInvokers(List<Invoker<?>> invokers)参数类型为Invoker的org.apache.dubbo.rpc中的构造器 构造器 说明 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.xRpcInvocation(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 invocationRpcInvocation(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.xRpcInvocation(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 -
org.apache.dubbo.rpc.filter中Invoker的使用
参数类型为Invoker的org.apache.dubbo.rpc.filter中的方法 修饰符和类型 方法 说明 ResultAccessLogFilter. invoke(Invoker<?> invoker, Invocation inv)This method logs the access log for service method invocation call.ResultActiveLimitFilter. invoke(Invoker<?> invoker, Invocation invocation)ResultClassLoaderCallbackFilter. invoke(Invoker<?> invoker, Invocation invocation)ResultClassLoaderFilter. invoke(Invoker<?> invoker, Invocation invocation)ResultCompatibleFilter. invoke(Invoker<?> invoker, Invocation invocation)ResultContextFilter. invoke(Invoker<?> invoker, Invocation invocation)ResultDeprecatedFilter. invoke(Invoker<?> invoker, Invocation invocation)ResultEchoFilter. invoke(Invoker<?> invoker, Invocation inv)ResultExceptionFilter. invoke(Invoker<?> invoker, Invocation invocation)ResultExecuteLimitFilter. invoke(Invoker<?> invoker, Invocation invocation)ResultGenericFilter. invoke(Invoker<?> invoker, Invocation inv)ResultGenericImplFilter. invoke(Invoker<?> invoker, Invocation invocation)ResultProfilerServerFilter. invoke(Invoker<?> invoker, Invocation invocation)ResultTimeoutFilter. invoke(Invoker<?> invoker, Invocation invocation)ResultTokenFilter. invoke(Invoker<?> invoker, Invocation inv)RpcInvocationTokenHeaderFilter. invoke(Invoker<?> invoker, RpcInvocation invocation)ResultTpsLimitFilter. invoke(Invoker<?> invoker, Invocation invocation)voidActiveLimitFilter. onError(Throwable t, Invoker<?> invoker, Invocation invocation)voidClassLoaderCallbackFilter. onError(Throwable t, Invoker<?> invoker, Invocation invocation)voidClassLoaderFilter. onError(Throwable t, Invoker<?> invoker, Invocation invocation)voidCompatibleFilter. onError(Throwable t, Invoker<?> invoker, Invocation invocation)voidContextFilter. onError(Throwable t, Invoker<?> invoker, Invocation invocation)voidExceptionFilter. onError(Throwable e, Invoker<?> invoker, Invocation invocation)voidExecuteLimitFilter. onError(Throwable t, Invoker<?> invoker, Invocation invocation)voidGenericFilter. onError(Throwable t, Invoker<?> invoker, Invocation invocation)voidGenericImplFilter. onError(Throwable t, Invoker<?> invoker, Invocation invocation)voidProfilerServerFilter. onError(Throwable t, Invoker<?> invoker, Invocation invocation)voidTimeoutFilter. onError(Throwable t, Invoker<?> invoker, Invocation invocation)voidActiveLimitFilter. onResponse(Result appResponse, Invoker<?> invoker, Invocation invocation)voidClassLoaderCallbackFilter. onResponse(Result appResponse, Invoker<?> invoker, Invocation invocation)voidClassLoaderFilter. onResponse(Result appResponse, Invoker<?> invoker, Invocation invocation)voidCompatibleFilter. onResponse(Result appResponse, Invoker<?> invoker, Invocation invocation)voidContextFilter. onResponse(Result appResponse, Invoker<?> invoker, Invocation invocation)voidExceptionFilter. onResponse(Result appResponse, Invoker<?> invoker, Invocation invocation)voidExecuteLimitFilter. onResponse(Result appResponse, Invoker<?> invoker, Invocation invocation)voidGenericFilter. onResponse(Result appResponse, Invoker<?> invoker, Invocation inv)voidGenericImplFilter. onResponse(Result appResponse, Invoker<?> invoker, Invocation invocation)voidProfilerServerFilter. onResponse(Result appResponse, Invoker<?> invoker, Invocation invocation)voidTimeoutFilter. onResponse(Result appResponse, Invoker<?> invoker, Invocation invocation) -
org.apache.dubbo.rpc.listener中Invoker的使用
实现Invoker的org.apache.dubbo.rpc.listener中的类 修饰符和类型 类 说明 classListenerInvokerWrapper<T>ListenerInvoker返回Invoker的org.apache.dubbo.rpc.listener中的方法 修饰符和类型 方法 说明 Invoker<T>ListenerExporterWrapper. getInvoker()Invoker<T>ListenerInvokerWrapper. getInvoker()参数类型为Invoker的org.apache.dubbo.rpc.listener中的方法 修饰符和类型 方法 说明 voidInvokerListenerAdapter. destroyed(Invoker<?> invoker)voidDeprecatedInvokerListener. referred(Invoker<?> invoker)voidInvokerListenerAdapter. referred(Invoker<?> invoker)参数类型为Invoker的org.apache.dubbo.rpc.listener中的构造器 构造器 说明 ListenerInvokerWrapper(Invoker<T> invoker, List<InvokerListener> listeners) -
org.apache.dubbo.rpc.protocol中Invoker的使用
实现Invoker的org.apache.dubbo.rpc.protocol中的类 修饰符和类型 类 说明 classAbstractInvoker<T>This Invoker works on Consumer side.classInvokerWrapper<T>InvokerWrapper返回Invoker的org.apache.dubbo.rpc.protocol中的方法 修饰符和类型 方法 说明 Invoker<T>AbstractExporter. getInvoker()<T> Invoker<T>AbstractProtocol. 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)参数类型为Invoker的org.apache.dubbo.rpc.protocol中的方法 修饰符和类型 方法 说明 <T> Exporter<T>AbstractProxyProtocol. export(Invoker<T> invoker)<T> Exporter<T>ProtocolListenerWrapper. export(Invoker<T> invoker)<T> Exporter<T>ProtocolSerializationWrapper. export(Invoker<T> invoker)参数类型为Invoker的org.apache.dubbo.rpc.protocol中的构造器 构造器 说明 AbstractExporter(Invoker<T> invoker)InvokerWrapper(Invoker<T> invoker, URL url) -
org.apache.dubbo.rpc.proxy中Invoker的使用
实现Invoker的org.apache.dubbo.rpc.proxy中的类 修饰符和类型 类 说明 classAbstractProxyInvoker<T>This Invoker works on provider side, delegates RPC to interface implementation.参数类型为Invoker的org.apache.dubbo.rpc.proxy中的方法 修饰符和类型 方法 说明 <T> TAbstractProxyFactory. getProxy(Invoker<T> invoker)<T> TAbstractProxyFactory. getProxy(Invoker<T> invoker, boolean generic)abstract <T> TAbstractProxyFactory. getProxy(Invoker<T> invoker, Class<?>[] types)static ObjectInvocationUtil. invoke(Invoker<?> invoker, RpcInvocation rpcInvocation)参数类型为Invoker的org.apache.dubbo.rpc.proxy中的构造器 构造器 说明 InvokerInvocationHandler(Invoker<?> handler) -
org.apache.dubbo.rpc.proxy.javassist中Invoker的使用
返回Invoker的org.apache.dubbo.rpc.proxy.javassist中的方法 修饰符和类型 方法 说明 <T> Invoker<T>JavassistProxyFactory. getInvoker(T proxy, Class<T> type, URL url)参数类型为Invoker的org.apache.dubbo.rpc.proxy.javassist中的方法 修饰符和类型 方法 说明 <T> TJavassistProxyFactory. getProxy(Invoker<T> invoker, Class<?>[] interfaces) -
org.apache.dubbo.rpc.proxy.jdk中Invoker的使用
返回Invoker的org.apache.dubbo.rpc.proxy.jdk中的方法 修饰符和类型 方法 说明 <T> Invoker<T>JdkProxyFactory. getInvoker(T proxy, Class<T> type, URL url)参数类型为Invoker的org.apache.dubbo.rpc.proxy.jdk中的方法 修饰符和类型 方法 说明 <T> TJdkProxyFactory. getProxy(Invoker<T> invoker, Class<?>[] interfaces) -
org.apache.dubbo.rpc.proxy.wrapper中Invoker的使用
返回Invoker的org.apache.dubbo.rpc.proxy.wrapper中的方法 修饰符和类型 方法 说明 <T> Invoker<T>StubProxyFactoryWrapper. getInvoker(T proxy, Class<T> type, URL url)参数类型为Invoker的org.apache.dubbo.rpc.proxy.wrapper中的方法 修饰符和类型 方法 说明 <T> TStubProxyFactoryWrapper. getProxy(Invoker<T> invoker)<T> TStubProxyFactoryWrapper. getProxy(Invoker<T> invoker, boolean generic) -
org.apache.dubbo.rpc.stub中Invoker的使用
实现Invoker的org.apache.dubbo.rpc.stub中的类 修饰符和类型 类 说明 classStubInvoker<T>返回Invoker的org.apache.dubbo.rpc.stub中的方法 修饰符和类型 方法 说明 <T> Invoker<T>StubProxyFactory. getInvoker(T proxy, Class<T> type, URL url)参数类型为Invoker的org.apache.dubbo.rpc.stub中的方法 修饰符和类型 方法 说明 static <T,R>
StreamObserver<T>StubInvocationUtil. biOrClientStreamCall(Invoker<?> invoker, MethodDescriptor method, StreamObserver<R> responseObserver)static <T> TStubSuppliers. createStub(String interfaceName, Invoker<T> invoker)<T> TStubProxyFactory. getProxy(Invoker<T> invoker)<T> TStubProxyFactory. getProxy(Invoker<T> invoker, boolean generic)static <T,R>
voidStubInvocationUtil. serverStreamCall(Invoker<?> invoker, MethodDescriptor method, T request, StreamObserver<R> responseObserver)static <T,R>
RStubInvocationUtil. unaryCall(Invoker<?> invoker, MethodDescriptor methodDescriptor, T request)static <T,R>
voidStubInvocationUtil. unaryCall(Invoker<?> invoker, MethodDescriptor method, T request, StreamObserver<R> responseObserver)类型变量类型为Invoker的org.apache.dubbo.rpc.stub中的方法参数 修饰符和类型 方法 说明 static voidStubSuppliers. addSupplier(String interfaceName, Function<Invoker<?>,Object> supplier) -
org.apache.dubbo.rpc.support中Invoker的使用
实现Invoker的org.apache.dubbo.rpc.support中的类 修饰符和类型 类 说明 classMockInvoker<T>返回Invoker的org.apache.dubbo.rpc.support中的方法 修饰符和类型 方法 说明 <T> Invoker<T>MockProtocol. protocolBindingRefer(Class<T> type, URL url)参数类型为Invoker的org.apache.dubbo.rpc.support中的方法 修饰符和类型 方法 说明 voidAccessLogData. buildAccessLogData(Invoker<?> invoker, Invocation inv)<T> Exporter<T>MockProtocol. export(Invoker<T> invoker)
-