Examples of DubboCommunicationConnectionFactory


Examples of com.alibaba.otter.shared.communication.core.impl.dubbo.DubboCommunicationConnectionFactory

        endpoint2088.initial();

        DubboCommunicationEndpoint endpoint2089 = new DubboCommunicationEndpoint(2089);
        endpoint2089.initial();

        CommunicationConnectionFactory factory = new DubboCommunicationConnectionFactory();
        client = new DefaultCommunicationClientImpl(factory);
        client.initial();
    }
View Full Code Here

Examples of com.alibaba.otter.shared.communication.core.impl.dubbo.DubboCommunicationConnectionFactory

        endpoint.initial();
    }

    @Test
    public void testSingle() {
        CommunicationConnectionFactory factory = new DubboCommunicationConnectionFactory();
        CommunicationParam param = new CommunicationParam();
        param.setIp("127.0.0.1");
        param.setPort(2088);
        CommunicationConnection connection = factory.createConnection(param);
        Object result = connection.call(new HeartEvent());
        want.object(result).notNull();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.