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