Jagger
 All Classes Namespaces Files Functions Variables Enumerator Groups Pages
Decision com.griddynamics.jagger.engine.e1.collector.testgroup.TestGroupDecisionMakerListener.Composer.onDecisionMaking ( TestGroupDecisionMakerInfo  decisionMakerInfo)

Executes after test-group measured parameters are aggregated in the database,
intended metrics are compared to limits, decisions for all tests in test group are taken.


Parameters
decisionMakerInfo- describes test-group, decisions for all tests in test groups,
limits and decisions for all metrics in tests
Returns
decision Decision for this test group, based on input info

Implements com.griddynamics.jagger.engine.e1.collector.testgroup.TestGroupDecisionMakerListener.

Definition at line 40 of file TestGroupDecisionMakerListener.java.

40  {
41  List<Decision> decisions = new ArrayList<Decision>();
42 
43  WorstCaseDecisionMaker worstCaseDecisionMaker = new WorstCaseDecisionMaker();
44 
45  for (TestGroupDecisionMakerListener listener : listenerList){
46  try{
47  decisions.add(listener.onDecisionMaking(decisionMakerInfo));
48  }catch (RuntimeException ex){
49  log.error("Failed to call on decision making in {} test-group-decision-maker-listener", listener.toString(), ex);
50  }
51  }
52 
53  return worstCaseDecisionMaker.getDecision(decisions);
54  }