Mercurial > hg > Members > tatsuki > jungle-bench
view src/main/java/jp/ac/u_ryukyu/ie/cr/tatsuki/xml/ReadJungleThread.java @ 25:69dca2ab1783
add mongoBenchMark script
author | tatsuki |
---|---|
date | Mon, 04 May 2015 00:20:18 +0900 |
parents | c8d8864714d4 |
children |
line wrap: on
line source
package jp.ac.u_ryukyu.ie.cr.tatsuki.xml; import jp.ac.u_ryukyu.cr.ie.tatsuki.xmlTestBbs.JuGrix; public class ReadJungleThread extends Thread { JuGrix jugrix; int findCount; int successCount; int faildCount; boolean loop = true; public ReadJungleThread(JuGrix jugrix) { this.jugrix = jugrix; this.findCount = 0; this.successCount = 0; this.faildCount = 0; } public int getFindCount() { System.out.println("thread count = " + findCount); return findCount; } public void set(boolean loop) { this.loop = loop; } @Override public void run() { while (loop) { boolean account = jugrix.isActive("p:" + 20,"v:1"); if (account) findCount++; } } }