[jboss-cvs] JBossCache/tests/stress/org/jboss/cache ...
Manik Surtani
msurtani at jboss.com
Mon Nov 6 11:52:40 EST 2006
User: msurtani
Date: 06/11/06 11:52:40
Modified: tests/stress/org/jboss/cache Tag: Branch_JBossCache_1_4_0
BuddyReplicationStressTest.java
Log:
Disabled test
Revision Changes Path
No revision
No revision
1.6.2.1 +177 -176 JBossCache/tests/stress/org/jboss/cache/Attic/BuddyReplicationStressTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: BuddyReplicationStressTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/stress/org/jboss/cache/Attic/BuddyReplicationStressTest.java,v
retrieving revision 1.6
retrieving revision 1.6.2.1
diff -u -b -r1.6 -r1.6.2.1
--- BuddyReplicationStressTest.java 12 May 2006 00:01:48 -0000 1.6
+++ BuddyReplicationStressTest.java 6 Nov 2006 16:52:40 -0000 1.6.2.1
@@ -10,7 +10,6 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.jboss.cache.buddyreplication.BuddyReplicationTestsBase;
-import org.jboss.cache.misc.TestingUtil;
import java.util.ArrayList;
import java.util.List;
@@ -50,12 +49,13 @@
{
super("Requestor-" + i);
}
+
public void run()
{
session = loadBalancer.getSession();
log.warn(getName() + " got SESSION ID " + session);
- for (int i=0;i<NUM_REQ_LOOPS; i++)
+ for (int i = 0; i < NUM_REQ_LOOPS; i++)
{
TreeCache cache = loadBalancer.getCache(session);
@@ -78,7 +78,7 @@
public void checkResults() throws Exception
{
TreeCache cache = loadBalancer.getCache(session);
- for (int i=0;i<NUM_REQ_LOOPS; i++)
+ for (int i = 0; i < NUM_REQ_LOOPS; i++)
{
assertEquals("Thread " + getName() + " in loop " + i, "value", cache.get("/JSESSIONID/" + session + "/stuff", "key" + i));
}
@@ -144,6 +144,7 @@
public class NodeReviver extends Thread
{
private boolean running = true;
+
public void run()
{
while (running)
@@ -156,7 +157,7 @@
{
}
- for (int i=0;i<caches.length; i++)
+ for (int i = 0; i < caches.length; i++)
{
if (caches[i] == null)
{
@@ -180,7 +181,7 @@
public void setUp() throws Exception
{
- loadBalancer = new LoadBalancer();
+ /*loadBalancer = new LoadBalancer();
nodeKiller = new NodeKiller();
nodeReviver = new NodeReviver();
@@ -188,7 +189,7 @@
for (int i=0; i<NUM_REQ_THREADS; i++) requestors[i] = new Requestor(i);
- TestingUtil.blockUntilViewsReceived(caches, 30000);
+ TestingUtil.blockUntilViewsReceived(caches, 30000);*/
}
public void tearDown()
More information about the jboss-cvs-commits
mailing list