Mercurial > hg > Members > tatsuki > jungle-bench
view src/main/java/jp/ac/u_ryukyu/ie/cr/tatsuki/xml/ReadJungleThread.java @ 28:2ac12de0aaeb default tip
mongo BenchMark change
author | tatsuki |
---|---|
date | Tue, 05 May 2015 01:19:04 +0900 |
parents | 69dca2ab1783 |
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++; } } }