Package org.jgroups.protocols

Examples of org.jgroups.protocols.TCPPING


        View v=new View(a1, 1, members);
        s=new Simulator();
        s.setLocalAddress(a1);
        s.setView(v);
        s.addMember(a1);
        TCPPING tcpping=new TCPPING();
        Properties props=new Properties();
        props.setProperty("initial_hosts", "127.0.0.1[1111],127.0.0.1[2222]");
        props.setProperty("max_dynamic_hosts", "10"); // for testDynamicMembers
        tcpping.setPropertiesInternal(props);
        interceptor = new MessageInterceptor();
        Protocol[] stack=new Protocol[]{tcpping, interceptor};
        s.setProtocolStack(stack);
        s.start();
    }
View Full Code Here

TOP

Related Classes of org.jgroups.protocols.TCPPING

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.