add author and some comment
This commit is contained in:
parent
6f1f88a0b1
commit
077b74537f
|
@ -8,6 +8,12 @@ import java.util.UUID;
|
||||||
import org.bench4q.agent.api.model.AgentBriefStatusModel;
|
import org.bench4q.agent.api.model.AgentBriefStatusModel;
|
||||||
import org.bench4q.agent.scenario.BehaviorResult;
|
import org.bench4q.agent.scenario.BehaviorResult;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This class collect the behavior result and statistic it.
|
||||||
|
*
|
||||||
|
* @author coderfengyun
|
||||||
|
*
|
||||||
|
*/
|
||||||
public class AgentResultDataCollector extends AbstractDataCollector {
|
public class AgentResultDataCollector extends AbstractDataCollector {
|
||||||
private long timeOfPreviousCall;
|
private long timeOfPreviousCall;
|
||||||
private long failCountOfThisCall;
|
private long failCountOfThisCall;
|
||||||
|
@ -147,7 +153,12 @@ public class AgentResultDataCollector extends AbstractDataCollector {
|
||||||
// ///////////////////////////////
|
// ///////////////////////////////
|
||||||
// DataStatistics Interface end
|
// 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) {
|
private void addItem(BehaviorResult behaviorResult) {
|
||||||
if (behaviorResult.isSuccess()) {
|
if (behaviorResult.isSuccess()) {
|
||||||
this.successCountOfThisCall++;
|
this.successCountOfThisCall++;
|
||||||
|
|
Loading…
Reference in New Issue