Package org.jgroups.protocols

Examples of org.jgroups.protocols.TCPGOSSIP


    public void testAddInitialHosts() throws Exception {
        coordinator = new JChannel(props);
        channel = new JChannel(props);
        coordinator.connect(GROUP);
        channel.connect(GROUP);
        TCPGOSSIP p = (TCPGOSSIP) channel.getProtocolStack().findProtocol(TCPGOSSIP.class);
        String bind_addr = getRouterBindAddress();
        assert p.removeInitialHost(bind_addr, 12001);
        p.addInitialHost(bind_addr, 12001);
              
      
        View view = channel.getView();
        assert view.size() == 2;
        assert view.containsMember(channel.getAddress());
View Full Code Here

TOP

Related Classes of org.jgroups.protocols.TCPGOSSIP

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.