Search in sources :

Example 1 with SHARED_LOOPBACK_PING

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

the class MergeTest2 method createChannel.

protected JChannel createChannel(String name) throws Exception {
    SHARED_LOOPBACK shared_loopback = new SHARED_LOOPBACK();
    shared_loopback.setDiagnosticsHandler(handler);
    JChannel retval = new JChannel(shared_loopback, new DISCARD().setValue("discard_all", true), new SHARED_LOOPBACK_PING(), new NAKACK2().setValue("use_mcast_xmit", false).setValue("log_discard_msgs", false).setValue("log_not_found_msgs", false), new UNICAST3(), new STABLE().setValue("max_bytes", 50000), new GMS().setValue("print_local_addr", false).setValue("leave_timeout", 100).setValue("merge_timeout", 3000).setValue("log_view_warnings", false).setValue("view_ack_collection_timeout", 50).setValue("log_collect_msgs", false));
    retval.setName(name);
    JmxConfigurator.registerChannel(retval, Util.getMBeanServer(), name, retval.getClusterName(), true);
    retval.connect("MergeTest2");
    return retval;
}
Also used : SHARED_LOOPBACK(org.jgroups.protocols.SHARED_LOOPBACK) NAKACK2(org.jgroups.protocols.pbcast.NAKACK2) DISCARD(org.jgroups.protocols.DISCARD) SHARED_LOOPBACK_PING(org.jgroups.protocols.SHARED_LOOPBACK_PING) STABLE(org.jgroups.protocols.pbcast.STABLE) GMS(org.jgroups.protocols.pbcast.GMS) UNICAST3(org.jgroups.protocols.UNICAST3)

Example 2 with SHARED_LOOPBACK_PING

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

the class RpcDispatcherAsyncInvocationTest method createChannel.

protected static JChannel createChannel(String name) throws Exception {
    SHARED_LOOPBACK sl = new SHARED_LOOPBACK();
    sl.getThreadPool().setMinThreads(10).setMaxThreads(20);
    return new JChannel(sl, new SHARED_LOOPBACK_PING(), new NAKACK2(), new UNICAST3(), new GMS()).name(name);
}
Also used : SHARED_LOOPBACK(org.jgroups.protocols.SHARED_LOOPBACK) NAKACK2(org.jgroups.protocols.pbcast.NAKACK2) JChannel(org.jgroups.JChannel) SHARED_LOOPBACK_PING(org.jgroups.protocols.SHARED_LOOPBACK_PING) GMS(org.jgroups.protocols.pbcast.GMS) UNICAST3(org.jgroups.protocols.UNICAST3)

Example 3 with SHARED_LOOPBACK_PING

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

the class MessageBeforeConnectedTest method createChannel.

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

Example 4 with SHARED_LOOPBACK_PING

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

the class MergeTest3 method createChannel.

protected static JChannel createChannel(String name) throws Exception {
    JChannel retval = new JChannel(new SHARED_LOOPBACK(), new DISCARD().discardAll(true), new SHARED_LOOPBACK_PING(), new NAKACK2().useMcastXmit(false).logDiscardMessages(false).logNotFoundMessages(false), new UNICAST3(), new STABLE().setMaxBytes(50000), new GMS().printLocalAddress(false).setJoinTimeout(1).setLeaveTimeout(100).setMergeTimeout(5000).logViewWarnings(false).setViewAckCollectionTimeout(50).logCollectMessages(false)).name(name);
    retval.connect("MergeTest3");
    JmxConfigurator.registerChannel(retval, Util.getMBeanServer(), name, retval.getClusterName(), true);
    return retval;
}
Also used : SHARED_LOOPBACK(org.jgroups.protocols.SHARED_LOOPBACK) NAKACK2(org.jgroups.protocols.pbcast.NAKACK2) DISCARD(org.jgroups.protocols.DISCARD) SHARED_LOOPBACK_PING(org.jgroups.protocols.SHARED_LOOPBACK_PING) STABLE(org.jgroups.protocols.pbcast.STABLE) GMS(org.jgroups.protocols.pbcast.GMS) UNICAST3(org.jgroups.protocols.UNICAST3)

Aggregations

SHARED_LOOPBACK (org.jgroups.protocols.SHARED_LOOPBACK)4 SHARED_LOOPBACK_PING (org.jgroups.protocols.SHARED_LOOPBACK_PING)4 UNICAST3 (org.jgroups.protocols.UNICAST3)4 GMS (org.jgroups.protocols.pbcast.GMS)4 NAKACK2 (org.jgroups.protocols.pbcast.NAKACK2)4 DISCARD (org.jgroups.protocols.DISCARD)2 STABLE (org.jgroups.protocols.pbcast.STABLE)2 JChannel (org.jgroups.JChannel)1