Search in sources :

Example 1 with FILE_PING

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

the class FrozenCoordinatorTest method create.

protected JChannel create(String name) throws Exception {
    FILE_PING ping = new FILE_PING().setLocation(root_dir.toString()).removeAllDataOnViewChange(true);
    Protocol[] protocols = { new SHARED_LOOPBACK(), ping, new NAKACK2(), new UNICAST3(), new STABLE(), new GMS().setJoinTimeout(1000).setMaxJoinAttempts(5) };
    return new JChannel(protocols).name(name);
}
Also used : SHARED_LOOPBACK(org.jgroups.protocols.SHARED_LOOPBACK) FILE_PING(org.jgroups.protocols.FILE_PING) NAKACK2(org.jgroups.protocols.pbcast.NAKACK2) JChannel(org.jgroups.JChannel) STABLE(org.jgroups.protocols.pbcast.STABLE) Protocol(org.jgroups.stack.Protocol) GMS(org.jgroups.protocols.pbcast.GMS) UNICAST3(org.jgroups.protocols.UNICAST3)

Aggregations

JChannel (org.jgroups.JChannel)1 FILE_PING (org.jgroups.protocols.FILE_PING)1 SHARED_LOOPBACK (org.jgroups.protocols.SHARED_LOOPBACK)1 UNICAST3 (org.jgroups.protocols.UNICAST3)1 GMS (org.jgroups.protocols.pbcast.GMS)1 NAKACK2 (org.jgroups.protocols.pbcast.NAKACK2)1 STABLE (org.jgroups.protocols.pbcast.STABLE)1 Protocol (org.jgroups.stack.Protocol)1