Package com.alibaba.dubbo.rpc.cluster.support

Examples of com.alibaba.dubbo.rpc.cluster.support.AbstractClusterInvoker


    ProxyFactory proxy = ExtensionLoader.getExtensionLoader(ProxyFactory.class).getExtension("jdk");
    Invoker<IHelloService> invoker1 = proxy.getInvoker(new HelloService(), IHelloService.class, durl);
    invokers.add(invoker1);
   
    Directory<IHelloService> dic = new StaticDirectory<IHelloService>(durl, invokers, null);
    AbstractClusterInvoker<IHelloService> cluster = new AbstractClusterInvoker(dic) {
            @Override
            protected Result doInvoke(Invocation invocation, List invokers, LoadBalance loadbalance)
                    throws RpcException {
              if (durl.getParameter("invoke_return_error", false)){
                throw new RpcException(RpcException.TIMEOUT_EXCEPTION, "test rpc exception");
View Full Code Here

TOP

Related Classes of com.alibaba.dubbo.rpc.cluster.support.AbstractClusterInvoker

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.