Search in sources :

Example 1 with PING

use of org.jgroups.protocols.PING in project JGroups by belaban.

the class BecomeServerTest method createChannel.

protected static JChannel createChannel(String name) throws Exception {
    JChannel ch = new JChannel(new SHARED_LOOPBACK(), new PING(), new NAKACK2().setBecomeServerQueueSize(10), new UNICAST3(), new GMS().printLocalAddress(false).setJoinTimeout((500)));
    ch.setName(name);
    return ch;
}
Also used : SHARED_LOOPBACK(org.jgroups.protocols.SHARED_LOOPBACK) NAKACK2(org.jgroups.protocols.pbcast.NAKACK2) PING(org.jgroups.protocols.PING) GMS(org.jgroups.protocols.pbcast.GMS) UNICAST3(org.jgroups.protocols.UNICAST3)

Example 2 with PING

use of org.jgroups.protocols.PING in project JGroups by belaban.

the class TUNNELDeadLockTest method createTunnelChannel.

protected JChannel createTunnelChannel(String name) throws Exception {
    TUNNEL tunnel = new TUNNEL().setBindAddress(InetAddress.getByName(bind_addr));
    tunnel.setGossipRouterHosts(gossip_router_hosts);
    JChannel ch = new JChannel(tunnel, new PING(), new NAKACK2(), new UNICAST3(), new STABLE(), new GMS().setJoinTimeout(1000)).name(name);
    if (name != null)
        ch.setName(name);
    return ch;
}
Also used : TUNNEL(org.jgroups.protocols.TUNNEL) NAKACK2(org.jgroups.protocols.pbcast.NAKACK2) PING(org.jgroups.protocols.PING) STABLE(org.jgroups.protocols.pbcast.STABLE) GMS(org.jgroups.protocols.pbcast.GMS) UNICAST3(org.jgroups.protocols.UNICAST3)

Aggregations

PING (org.jgroups.protocols.PING)2 UNICAST3 (org.jgroups.protocols.UNICAST3)2 GMS (org.jgroups.protocols.pbcast.GMS)2 NAKACK2 (org.jgroups.protocols.pbcast.NAKACK2)2 SHARED_LOOPBACK (org.jgroups.protocols.SHARED_LOOPBACK)1 TUNNEL (org.jgroups.protocols.TUNNEL)1 STABLE (org.jgroups.protocols.pbcast.STABLE)1