[jboss-cvs] CacheBenchFwk/src/org/cachebench ...
Manik Surtani
manik at jboss.org
Mon May 21 12:30:00 EDT 2007
User: msurtani
Date: 07/05/21 12:30:00
Modified: src/org/cachebench CacheBenchmarkSlave.java
Log:
Better debug
Revision Changes Path
1.8 +3 -1 CacheBenchFwk/src/org/cachebench/CacheBenchmarkSlave.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: CacheBenchmarkSlave.java
===================================================================
RCS file: /cvsroot/jboss/CacheBenchFwk/src/org/cachebench/CacheBenchmarkSlave.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- CacheBenchmarkSlave.java 21 May 2007 16:27:55 -0000 1.7
+++ CacheBenchmarkSlave.java 21 May 2007 16:30:00 -0000 1.8
@@ -17,7 +17,7 @@
/**
* @author Manik Surtani (manik at surtani.org)
- * @version $Id: CacheBenchmarkSlave.java,v 1.7 2007/05/21 16:27:55 msurtani Exp $
+ * @version $Id: CacheBenchmarkSlave.java,v 1.8 2007/05/21 16:30:00 msurtani Exp $
*/
public class CacheBenchmarkSlave
{
@@ -86,6 +86,8 @@
// hack to cause the main thread to wait forever.
// for (int i = 0; i<2; i++) sema.acquire();
boolean debug = Boolean.getBoolean("org.cachebench.debug");
+ if (debug) System.out.println("DEBUG mode is true. Will dump cache contents periodically");
+ System.out.println("Slave listening... ");
while (true)
{
Thread.sleep(debug ? 5000 : 240000);
More information about the jboss-cvs-commits
mailing list