應用MapReduce制作壓測利器(6)

發表于:2014-06-25來源:淘測試作者:凡提點擊數: 標簽:
this . recordnum ); reporter .setStatus( Record: +staticCount+ ( +staticWrite+ w, +staticRead+ r), Write Size: +staticWriteSize+ , Write Time: +staticWriteTime + , Read Size: +staticReadSize+ , Read T
this.recordnum);

reporter.setStatus("Record: "+staticCount+"("+staticWrite+"w, "+staticRead+"r), Write Size: "

+staticWriteSize+", Write Time: "+staticWriteTime

+", Read Size: "+staticReadSize+", Read Time: "+staticReadTime);

httpurlconnection.getOutputStream().write(sb.toString().getBytes());

httpurlconnection.getOutputStream().flush();

httpurlconnection.getOutputStream().close();

int code = httpurlconnection.getResponseCode();

if(code != 200) {

LOG.warn("send data to master server failed, code=" + code);

}

reporter.incrCounter("TestTool", "Http Post num", 1);

map.staticPost.addAndGet(1);

Thread.sleep(interval);

} catch (Exception e) {

map.staticPost.addAndGet(1);

reporter.incrCounter("TestTool", e.getClass().toString(), 1);

原文轉自:http://www.taobaotest.com/blogs/2515

国产97人人超碰caoprom_尤物国产在线一区手机播放_精品国产一区二区三_色天使久久综合给合久久97