add author and some comment

This commit is contained in:
Tienan Chen 2013-11-14 14:23:15 +08:00
parent 6f1f88a0b1
commit 077b74537f
1 changed files with 12 additions and 1 deletions

View File

@ -8,6 +8,12 @@ import java.util.UUID;
import org.bench4q.agent.api.model.AgentBriefStatusModel;
import org.bench4q.agent.scenario.BehaviorResult;
/**
* This class collect the behavior result and statistic it.
*
* @author coderfengyun
*
*/
public class AgentResultDataCollector extends AbstractDataCollector {
private long timeOfPreviousCall;
private long failCountOfThisCall;
@ -147,7 +153,12 @@ public class AgentResultDataCollector extends AbstractDataCollector {
// ///////////////////////////////
// DataStatistics Interface end
// ///////////////////////////////
/**
* For the failed one, only the fail count statistics will be added, Others
* of this failed one will be ignored
*
* @param behaviorResult
*/
private void addItem(BehaviorResult behaviorResult) {
if (behaviorResult.isSuccess()) {
this.successCountOfThisCall++;