Package com.alibaba.otter.shared.communication.app.event

Examples of com.alibaba.otter.shared.communication.app.event.AppDeleteEvent


    }

    @Test
    public void testRmi_deleteEvent() { // 测试异步调用+多节点
        CommunicationRegistry.regist(AppEventType.update, service);
        AppDeleteEvent event = new AppDeleteEvent();
        event.setName("rmiEvent");

        client.call(new String[] { "127.0.0.1:2088", "127.0.0.1:2089" }, event, new Callback<List<Boolean>>() {

            public void call(List<Boolean> event) {
                want.number(event.size()).isEqualTo(2);
                want.bool(event.get(0)).is(true);
                want.bool(event.get(1)).is(true);
            }
        });// 异步调用
    }
View Full Code Here


    }

    @Test
    public void testRmi_deleteEvent() { // 测试异步调用+多节点
        CommunicationRegistry.regist(AppEventType.update, service);
        AppDeleteEvent event = new AppDeleteEvent();
        event.setName("rmiEvent");

        client.call(new String[] { "127.0.0.1:1099", "127.0.0.1:1098" }, event, new Callback<List<Boolean>>() {

            public void call(List<Boolean> event) {
                want.number(event.size()).isEqualTo(2);
                want.bool(event.get(0)).is(true);
                want.bool(event.get(1)).is(true);
            }
        });// 异步调用
    }
View Full Code Here

TOP

Related Classes of com.alibaba.otter.shared.communication.app.event.AppDeleteEvent

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.