Package org.jgroups.protocols

Examples of org.jgroups.protocols.TUNNEL


    }
   
    private void modifyChannel(JChannel... channels) throws Exception {
        for (JChannel c : channels) {
            ProtocolStack stack = c.getProtocolStack();
            TUNNEL t = (TUNNEL) stack.getBottomProtocol();
            String s = bindAddress + "[" + gr1.getPort() + "],";
            s+=bindAddress+"[" + gr2.getPort() + "]";
            t.setGossipRouterHosts(s);
            t.init();
        }       
    }
View Full Code Here


            merge.setMaxInterval(3000);
        }
    }

    private static void setReconnectInterval(JChannel channel) {
        TUNNEL tunnel=(TUNNEL)channel.getProtocolStack().getTransport();
        if(tunnel != null) {
            tunnel.setReconnectInterval(2000);
        }
    }
View Full Code Here

        if(merge != null) {
            merge.setMinInterval(1000);
            merge.setMaxInterval(3000);
        }

        TUNNEL tunnel=(TUNNEL)stack.getTransport();
        if(tunnel != null) {
            tunnel.setReconnectInterval(2000);
        }

        PING ping=(PING)stack.findProtocol(PING.class);
        if(ping != null) {
            ping.setGossipRefresh(1000);
View Full Code Here

TOP

Related Classes of org.jgroups.protocols.TUNNEL

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.