[jboss-cvs] JBoss Messaging SVN: r2070 - trunk/tests/src/org/jboss/test/messaging/core/plugin/postoffice/cluster.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Fri Jan 26 14:05:54 EST 2007
Author: timfox
Date: 2007-01-26 14:05:53 -0500 (Fri, 26 Jan 2007)
New Revision: 2070
Modified:
trunk/tests/src/org/jboss/test/messaging/core/plugin/postoffice/cluster/JGroupsUtil.java
Log:
More tweaks
Modified: trunk/tests/src/org/jboss/test/messaging/core/plugin/postoffice/cluster/JGroupsUtil.java
===================================================================
--- trunk/tests/src/org/jboss/test/messaging/core/plugin/postoffice/cluster/JGroupsUtil.java 2007-01-26 18:34:22 UTC (rev 2069)
+++ trunk/tests/src/org/jboss/test/messaging/core/plugin/postoffice/cluster/JGroupsUtil.java 2007-01-26 19:05:53 UTC (rev 2070)
@@ -23,6 +23,8 @@
package org.jboss.test.messaging.core.plugin.postoffice.cluster;
+import java.net.InetAddress;
+
/**
* @author <a href="mailto:ovidiu at jboss.org">Ovidiu Feodorov</a>
* @author <a href="mailto:tim.fox at jboss.com">Tim Fox</a>
@@ -39,39 +41,16 @@
public static String getDataStackProperties()
{
-// String host = System.getProperty("test.bind.address");
-// if (host == null)
-// {
-// host = "localhost";
-// }
-
- /*
-
- <UDP mcast_recv_buf_size="500000" down_thread="false" ip_mcast="true" mcast_send_buf_size="32000"
- mcast_port="45567" ucast_recv_buf_size="500000" use_incoming_packet_handler="false"
- mcast_addr="228.8.8.8" use_outgoing_packet_handler="true" loopback="true" ucast_send_buf_size="32000" ip_ttl="32" bind_addr="127.0.0.1"/>
- <AUTOCONF down_thread="false" up_thread="false"/>
- <PING timeout="2000" down_thread="false" num_initial_members="3" up_thread="false"/>
- <MERGE2 max_interval="10000" down_thread="false" min_interval="5000" up_thread="false"/>
- <FD_SOCK down_thread="false" up_thread="false"/>
- <FD timeout="20000" max_tries="3" down_thread="false" up_thread="false" shun="true"/>
- <VERIFY_SUSPECT timeout="1500" down_thread="false" up_thread="false"/>
- <pbcast.NAKACK max_xmit_size="8192" down_thread="false" use_mcast_xmit="true" gc_lag="50" up_thread="false"
- retransmit_timeout="100,200,600,1200,2400,4800"/>
- <UNICAST timeout="1200,2400,3600" down_thread="false" up_thread="false"/>
- <pbcast.STABLE stability_delay="1000" desired_avg_gossip="20000" down_thread="false" max_bytes="0" up_thread="false"/>
- <FRAG frag_size="8192" down_thread="false" up_thread="false"/>
- <VIEW_SYNC avg_send_interval="60000" down_thread="false" up_thread="false" />
- <pbcast.GMS print_local_addr="true" join_timeout="3000" down_thread="false" join_retry_timeout="2000" up_thread="false" shun="true"/>
- </config>
-
- */
-
-
+ String host = System.getProperty("test.bind.address");
+ if (host == null)
+ {
+ host = "localhost";
+ }
+
return "UDP(mcast_recv_buf_size=500000;down_thread=false;ip_mcast=true;mcast_send_buf_size=32000;"+
"mcast_port=45567;ucast_recv_buf_size=500000;use_incoming_packet_handler=false;"+
"mcast_addr=228.8.8.8;use_outgoing_packet_handler=true;loopback=true;ucast_send_buf_size=32000;ip_ttl=32;"+
- "bind_addr=127.0.0.1):"+
+ "bind_addr=" + host + "):"+
"AUTOCONF(down_thread=false;up_thread=false):"+
"PING(timeout=2000;down_thread=false;num_initial_members=3;up_thread=false):"+
"MERGE2(max_interval=10000;down_thread=false;min_interval=5000;up_thread=false):"+
@@ -95,16 +74,16 @@
*/
public static String getControlStackProperties()
{
-// String host = System.getProperty("test.bind.address");
-// if (host == null)
-// {
-// host = "localhost";
-// }
+ String host = System.getProperty("test.bind.address");
+ if (host == null)
+ {
+ host = "localhost";
+ }
return "UDP(mcast_recv_buf_size=500000;down_thread=false;ip_mcast=true;mcast_send_buf_size=32000;"+
"mcast_port=45568;ucast_recv_buf_size=500000;use_incoming_packet_handler=false;"+
"mcast_addr=228.8.8.8;use_outgoing_packet_handler=true;loopback=true;ucast_send_buf_size=32000;ip_ttl=32;"+
- "bind_addr=127.0.0.1):"+
+ "bind_addr=" + host + "):"+
"AUTOCONF(down_thread=false;up_thread=false):"+
"PING(timeout=2000;down_thread=false;num_initial_members=3;up_thread=false):"+
"MERGE2(max_interval=10000;down_thread=false;min_interval=5000;up_thread=false):"+
More information about the jboss-cvs-commits
mailing list