1 package com.griddynamics.jagger.engine.e1.collector.testgroup;
3 import com.griddynamics.jagger.util.Decision;
4 import com.griddynamics.jagger.engine.e1.sessioncomparation.WorstCaseDecisionMaker;
5 import org.slf4j.Logger;
6 import org.slf4j.LoggerFactory;
8 import java.util.ArrayList;
31 private static Logger log = LoggerFactory.getLogger(
Composer.class);
33 private List<TestGroupDecisionMakerListener> listenerList;
35 private Composer(List<TestGroupDecisionMakerListener> listenerList){
36 this.listenerList = listenerList;
41 List<Decision> decisions =
new ArrayList<Decision>();
43 WorstCaseDecisionMaker worstCaseDecisionMaker =
new WorstCaseDecisionMaker();
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);
53 return worstCaseDecisionMaker.getDecision(decisions);