Author: ron.sigal(a)jboss.com
Date: 2008-04-25 00:58:36 -0400 (Fri, 25 Apr 2008)
New Revision: 4069
Modified:
remoting2/branches/2.x/src/tests/org/jboss/test/remoting/soak/ClientLauncher.java
Log:
JBREM-969: Removed some comments; synchronized printSet().
Modified:
remoting2/branches/2.x/src/tests/org/jboss/test/remoting/soak/ClientLauncher.java
===================================================================
---
remoting2/branches/2.x/src/tests/org/jboss/test/remoting/soak/ClientLauncher.java 2008-04-25
01:37:25 UTC (rev 4068)
+++
remoting2/branches/2.x/src/tests/org/jboss/test/remoting/soak/ClientLauncher.java 2008-04-25
04:58:36 UTC (rev 4069)
@@ -71,9 +71,6 @@
private static boolean creationDone;
// Configuration parameters.
-// private static long DURATION = 12 * 60 * 60 * 1000;
-// private static long DURATION = 1 * 60 * 60 * 1000;
- private static long DURATION = 30000;
private static int MAX_CLIENTS = 30;
private static int NUMBER_OF_EJB_CALLS = 4000;
private static int NUMBER_OF_JBM_CALLS = 2000;
@@ -235,10 +232,13 @@
private void printSet(Set set)
{
- Iterator it = set.iterator();
- while(it.hasNext())
+ synchronized (set)
{
- System.out.println(it.next().toString());
+ Iterator it = set.iterator();
+ while(it.hasNext())
+ {
+ System.out.println(it.next().toString());
+ }
}
}
}
Show replies by date