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;
}
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;
}
Aggregations